Commit d5792906 by David Ormsbee

add hostname to logging string, in prep for switch to aggregated syslog

parent 5a3be1b5
import os
import platform
import sys
import tempfile
......@@ -157,13 +158,15 @@ if MAKO_MODULE_DIR == None:
# more details on how to customize your logging configuration.
pid = os.getpid()
hostname = platform.node()
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters' : {
'standard' : {
'format' : '%(asctime)s %(levelname)s %(process)d [%(name)s] %(filename)s:%(lineno)d - %(message)s',
'format' : '%(asctime)s %(levelname)s [' + hostname + \
' %(process)d] [%(name)s] %(filename)s:%(lineno)d - %(message)s',
},
'raw' : {
'format' : '%(message)s',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment