Fixed UTF-8 stdout
This commit is contained in:
parent
0ff3713131
commit
ccd9642784
@ -1,4 +1,4 @@
|
|||||||
from .apv import *
|
from .apv import *
|
||||||
|
|
||||||
__version__ = '1.0.3'
|
__version__ = '1.0.4'
|
||||||
__author__ = 'acidvegas'
|
__author__ = 'acidvegas'
|
||||||
|
@ -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',
|
||||||
|
2
setup.py
2
setup.py
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user