source: TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/default_deployment/sessionmanager/sessionMgrLog.cfg @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/default_deployment/sessionmanager/sessionMgrLog.cfg@7077
Revision 7077, 1.2 KB checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1
2# Specify loggers, handlers and formatter names
3[loggers]
4keys=root,logFile
5
6[handlers]
7keys=handStdout,handLogFile,handSysLog,handStderr
8
9[formatters]
10keys=form01
11
12# The root logger must specify a level and a list of handlers. An example of a root logger section is given below.
13[logger_root]
14level=NOTSET
15handlers=handStdout,handStderr,handSysLog,handLogFile
16
17[logger_logFile]
18handlers=handLogFile
19qualname=Security.Log
20
21# Handlers
22[handler_handStderr]
23class=StreamHandler
24level=WARNING
25formatter=form01
26args=(sys.stderr,)
27
28[handler_handStdout]
29class=StreamHandler
30level=NOTSET
31formatter=form01
32args=(sys.stdout,)
33
34# Use rotating file handler for log file to avoid filling the disk
35[handler_handLogFile]
36class=handlers.RotatingFileHandler
37level=NOTSET
38formatter=form01
39args=(os.path.join(os.environ['NDGSEC_DIR'], 'log', 'session-mgr.log'), 'a', 100000, 10)
40
41# System logging
42[handler_handSysLog]
43class=handlers.SysLogHandler
44level=ERROR
45formatter=form01
46args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
47
48# Formatter configuration
49[formatter_form01]
50format=%(asctime)s %(name)s: %(levelname)-7s %(message)s
51datefmt=%d %b %Y %H:%M:%S
52class=logging.Formatter
Note: See TracBrowser for help on using the repository browser.