apv

- 🐍 advanced python logging 📔
git clone git://git.acid.vegas/apv.git
Log | Files | Refs | Archive | README | LICENSE

commit ccd9642784acc0c7fac2a1e1c6cf5c0f948f6e9a
parent 0ff3713131da9d70083f02854cc925e80b76bdc7
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 11 Dec 2024 21:43:44 -0500

Fixed UTF-8 stdout

Diffstat:
Mapv/__init__.py | 2+-
Mapv/apv.py | 3+++
Msetup.py | 2+-

3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/apv/__init__.py b/apv/__init__.py
@@ -1,4 +1,4 @@
 from .apv import * 
 
-__version__ = '1.0.3'
+__version__ = '1.0.4'
 __author__ = 'acidvegas' 
diff --git a/apv/apv.py b/apv/apv.py
@@ -4,6 +4,9 @@
 
 import logging
 import logging.handlers
+import sys
+
+sys.stdout.reconfigure(encoding='utf-8')
 
 class LoggerSetup:
     def __init__(self, level='INFO', date_format='%Y-%m-%d %H:%M:%S',
diff --git a/setup.py b/setup.py
@@ -9,7 +9,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
 
 setup(
     name='apv',
-    version='1.0.3',
+    version='1.0.4',
     description='Advanced Python Logging',
     author='acidvegas',
     author_email='acid.vegas@acid.vegas',