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