Fixed UTF-8 stdout

This commit is contained in:
Dionysus 2024-12-11 21:43:44 -05:00
parent 0ff3713131
commit ccd9642784
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from .apv import * from .apv import *
__version__ = '1.0.3' __version__ = '1.0.4'
__author__ = 'acidvegas' __author__ = 'acidvegas'

View File

@ -4,6 +4,9 @@
import logging import logging
import logging.handlers import logging.handlers
import sys
sys.stdout.reconfigure(encoding='utf-8')
class LoggerSetup: class LoggerSetup:
def __init__(self, level='INFO', date_format='%Y-%m-%d %H:%M:%S', def __init__(self, level='INFO', date_format='%Y-%m-%d %H:%M:%S',

View File

@ -9,7 +9,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
setup( setup(
name='apv', name='apv',
version='1.0.3', version='1.0.4',
description='Advanced Python Logging', description='Advanced Python Logging',
author='acidvegas', author='acidvegas',
author_email='acid.vegas@acid.vegas', author_email='acid.vegas@acid.vegas',