File: logging_issues.test

package info (click to toggle)
atheist 0.20100717-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 900 kB
  • ctags: 558
  • sloc: python: 2,922; xml: 578; makefile: 111; sh: 5
file content (18 lines) | stat: -rw-r--r-- 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- mode:python; coding:utf-8 -*-

import logging

log = logging

log = logging.getLogger("1")
log.addHandler(logging.StreamHandler())

def use_logging(arg):
    log.error("hi %s" % arg)
    return 0

#TaskFunc(use_logging, [1])
#TaskFunc(use_logging, [2])