mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 05:46:37 +02:00
17 lines
408 B
Python
17 lines
408 B
Python
|
|
import jwutils.log
|
||
|
|
|
||
|
|
class Object(object): # export
|
||
|
|
|
||
|
|
def __init__():
|
||
|
|
self.log_level = jwutils.log.NOTICE
|
||
|
|
|
||
|
|
def log(self, prio, *args):
|
||
|
|
if prio <= self.log_level:
|
||
|
|
msg = ""
|
||
|
|
for count, thing in enumerate(args):
|
||
|
|
msg += ' ' + str(thing)
|
||
|
|
if len(msg):
|
||
|
|
print msg[1:]
|
||
|
|
|
||
|
|
def debug(self, *args):
|
||
|
|
self.log(DEBUG, args)
|