mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Moving the logging system to src/
This commit is contained in:
parent
5064d0cacc
commit
ff98ede98f
6 changed files with 17 additions and 17 deletions
24
src/logger.py
Normal file
24
src/logger.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"""
|
||||
Logging facilities
|
||||
|
||||
This file should have an absolute minimum in imports. If you'd like to layer
|
||||
additional functionality on top of some of the methods below, wrap them in
|
||||
a higher layer module.
|
||||
"""
|
||||
from twisted.python import log
|
||||
|
||||
def log_errmsg(errormsg):
|
||||
"""
|
||||
Prints/logs an error message to the server log.
|
||||
|
||||
errormsg: (string) The message to be logged.
|
||||
"""
|
||||
log.err('ERROR: %s' % (errormsg,))
|
||||
|
||||
def log_infomsg(infomsg):
|
||||
"""
|
||||
Prints any generic debugging/informative info that should appear in the log.
|
||||
|
||||
debugmsg: (string) The message to be logged.
|
||||
"""
|
||||
log.msg('%s' % (infomsg,))
|
||||
Loading…
Add table
Add a link
Reference in a new issue