refactor/upgrade work
This commit is contained in:
20
domain/Logger.py
Normal file
20
domain/Logger.py
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
import sys
|
||||
import syslog
|
||||
|
||||
|
||||
class Logger:
|
||||
|
||||
@staticmethod
|
||||
def log(s):
|
||||
|
||||
print("[SSHConfiger]", s)
|
||||
syslog.syslog("[SSHConfiger] " + s)
|
||||
|
||||
#
|
||||
@staticmethod
|
||||
def complain(s):
|
||||
|
||||
syslog.syslog(syslog.LOG_ERR, "[SSHConfiger] " + s)
|
||||
print("[SSHConfiger]", s, file=sys.stderr)
|
||||
Reference in New Issue
Block a user