This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:python_development_standards [2019/06/24 21:50]
dgarcia [Logging]
tutorials:python_development_standards [2019/06/24 22:26] (current)
dgarcia [Logging]
Line 127: Line 127:
 <code python> <code python>
-from colorlog ​import ​ColoredFormatter+import ​colorlog
 # create the format object with colors. # create the format object with colors.
-formatter = ColoredFormatter( +formatter = colorlog.ColoredFormatter( 
- "​%(log_color)s%(levelname)-8s%(reset)s %(blue)s%(message)s",​+ "%(asctime)s%(log_color)s%(levelname)-8s%(reset)s %(blue)s%(message)s",​
  datefmt=None,​  datefmt=None,​
  reset=True,​  reset=True,​
  • tutorials/python_development_standards.1561431002.txt.gz
  • Last modified: 2019/06/24 21:50
  • by dgarcia