фигня
This commit is contained in:
parent
aa24383f54
commit
5c29c98550
@ -4,6 +4,7 @@ import sys
|
|||||||
log_format = logging.Formatter('%(asctime)s %(levelname)s:%(message)s')
|
log_format = logging.Formatter('%(asctime)s %(levelname)s:%(message)s')
|
||||||
log_file = 'output.log'
|
log_file = 'output.log'
|
||||||
|
|
||||||
|
|
||||||
class CustomFormatter(logging.Formatter):
|
class CustomFormatter(logging.Formatter):
|
||||||
|
|
||||||
grey = "\x1b[38;20m"
|
grey = "\x1b[38;20m"
|
||||||
@ -26,6 +27,7 @@ class CustomFormatter(logging.Formatter):
|
|||||||
formatter = logging.Formatter(log_fmt)
|
formatter = logging.Formatter(log_fmt)
|
||||||
return formatter.format(record)
|
return formatter.format(record)
|
||||||
|
|
||||||
|
|
||||||
class MyLog:
|
class MyLog:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user