File: sample.py

package info (click to toggle)
python-colorlog 6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 208 kB
  • sloc: python: 670; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import logging
import colorlog

fmt = "{log_color}{levelname} {name}: {message}"
colorlog.basicConfig(level=logging.DEBUG, style="{", format=fmt, stream=None)

log = logging.getLogger()

log.warning("hello")