File: logging.py

package info (click to toggle)
git-ubuntu 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,688 kB
  • sloc: python: 13,378; sh: 480; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 174 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import sys


def warning(m, *args):
    print('W:', m % args)

def error(m, *args):
    print('E:', m % args)

def fatal(m, *args):
    print('F:', m % args)
    sys.exit(2)