connection-specific-ssh-config/domain/Logger.py
2024-07-06 20:01:45 -07:00

21 lines
282 B
Python

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)