mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
20 lines
536 B
Python
20 lines
536 B
Python
import jwutils.log
|
|
|
|
class Object(object): # export
|
|
|
|
def __init__():
|
|
self.log_level = jwutils.log.level
|
|
|
|
def log(self, prio, *args):
|
|
if self.log_level == jwutils.log.level:
|
|
jwutils.log.slog(prio, args)
|
|
return
|
|
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):
|
|
jwutils.log.slog(jwutils.log.DEBUG, args)
|