From d7ee32028dea882e0f4cdc509c7bc425a0d5318a Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 30 Aug 2007 14:22:15 +0000 Subject: [PATCH] Log message format like for apache bzr revid: ced-85364a5f6ad1fed55aa455fe5896203bba0960d3 --- bin/netsvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/netsvc.py b/bin/netsvc.py index c1ed51c302b..560384abc27 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -139,7 +139,7 @@ def init_logger(): handler = logging.StreamHandler(sys.stdout) # create a format for log messages and dates - formatter = logging.Formatter('%(asctime)s %(levelname)s:%(name)s:%(message)s', '%a, %d %b %Y %H:%M:%S') + formatter = logging.Formatter('[%(asctime)s] %(levelname)s:%(name)s:%(message)s', '%a %b %d %H:%M:%S %Y') # tell the handler to use this format handler.setFormatter(formatter)