File: core.py

package info (click to toggle)
python-schroot 0.4-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 108 kB
  • sloc: python: 190; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
import logging


log = logging.getLogger('schroot')

def set_debug():
    log.setLevel(logging.DEBUG)
    _ch = logging.StreamHandler()
    _ch.setLevel(logging.DEBUG)
    _formatter = logging.Formatter(
        '[%(levelname)s] %(created)f: (%(funcName)s) %(message)s')
    _ch.setFormatter(_formatter)
    log.addHandler(_ch)