Commit d5792906 by David Ormsbee

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

parent 5a3be1b5
import os import os
import platform
import sys import sys
import tempfile import tempfile
...@@ -157,13 +158,15 @@ if MAKO_MODULE_DIR == None: ...@@ -157,13 +158,15 @@ if MAKO_MODULE_DIR == None:
# more details on how to customize your logging configuration. # more details on how to customize your logging configuration.
pid = os.getpid() pid = os.getpid()
hostname = platform.node()
LOGGING = { LOGGING = {
'version': 1, 'version': 1,
'disable_existing_loggers': True, 'disable_existing_loggers': True,
'formatters' : { 'formatters' : {
'standard' : { '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' : { 'raw' : {
'format' : '%(message)s', '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