connection-specific-ssh-config/domain/Logger.py

21 lines
282 B
Python
Raw Permalink Normal View History

2024-07-06 20:01:45 -07:00
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)