initial upload
This commit is contained in:
14
smmapd_prototype/Logging.py
Normal file
14
smmapd_prototype/Logging.py
Normal file
@ -0,0 +1,14 @@
|
||||
import syslog
|
||||
|
||||
|
||||
config = None
|
||||
|
||||
def log(data):
|
||||
syslog.syslog(syslog.LOG_INFO, data)
|
||||
|
||||
def debug(data):
|
||||
syslog.syslog(syslog.LOG_DEBUG, data)
|
||||
|
||||
def openlog(c):
|
||||
config = c
|
||||
syslog.openlog(config.get('Logging', 'ApplID'), syslog.LOG_PID, syslog.LOG_MAIL)
|
Reference in New Issue
Block a user