• R/O
  • SSH

pyrepo: Commit

Library with common primitives for Python_ programming language


Commit MetaInfo

Revisión07041d06b3e476012831240f09b6897819ba8a49 (tree)
Tiempo2022-01-04 06:06:10
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

log: Code style

Cambiar Resumen

Diferencia incremental

diff -r 90319f48e7df -r 07041d06b3e4 log.py
--- a/log.py Mon Jan 03 16:51:59 2022 +0300
+++ b/log.py Tue Jan 04 00:06:10 2022 +0300
@@ -53,8 +53,10 @@
5353 format = '%(asctime)s - %(levelname)s - %(module)s - %(message)s'
5454
5555 logging.basicConfig(filename = os.path.join(absPath, name + '.log'), format = format)
56+ fmt = '%(asctime)s - %(log_color)s%(levelname) 8s%(reset)s - %(log_color)s%(module)' \
57+ '8s%(reset)s - %(white)s%(message)s'
5658 formatter = ColoredFormatter(
57- '%(asctime)s - %(log_color)s%(levelname) 8s%(reset)s - %(log_color)s%(module) 8s%(reset)s - %(white)s%(message)s',
59+ fmt,
5860 datefmt = None,
5961 reset = True,
6062 log_colors = {
Show on old repository browser