summaryrefslogtreecommitdiff
path: root/sa-extract/log.py
blob: d4f96cb4e9de9dcdf43987508d5d8e405970f04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys

level = 1
file = sys.stderr

def writeln(s="", l=0):
    if level >= l:
	file.write("%s\n" % s)
	file.flush()

def write(s, l=0):
    if level >= l:
	file.write(s)
	file.flush()