This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
logging.yaml
62 lines (61 loc) · 1.93 KB
/
logging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
###
# logging configuration
###
version: 1
formatters:
generic:
format : '%(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s'
papertrail:
# requires filters [context]
format : '%(asctime)s %(hostname)s authoring %(message)s'
datefmt : '%Y-%m-%dT%H:%M:%S'
apache_style:
# requires filters [environ]
format : '%(REMOTE_ADDR)s - %(REMOTE_USER)s [%(asctime)s] "%(REQUEST_METHOD)s %(REQUEST_URI)s %(HTTP_VERSION)s" %(status)s %(bytes)s "%(HTTP_REFERER)s" "%(HTTP_USER_AGENT)s"'
datefmt : '%d/%b/%Y:%H:%M:%S'
filters:
context:
() : pyramid_sawing.filters.ContextFilter
environ:
() : pyramid_sawing.filters.EnvironFilter
handlers:
console:
class : logging.StreamHandler
level : NOTSET
formatter : generic
stream : 'ext://sys.stdout'
# syslog:
# # Streams directly to papertrailapp.com.
# # You'll need to change the host and port in order to use this.
# class : logging.handlers.SysLogHandler
# level : DEBUG
# formatter : papertrail
# # Note, the environ filter is automatically included by pyramid_sawing.
# filters : [context, environ]
# address : ['<host>.papertrailapp.com', 11111]
transit:
# Streams to standard out (STDOUT) using the apache-style formatter.
class : logging.StreamHandler
level : NOTSET
formatter : apache_style
stream : 'ext://sys.stdout'
loggers:
cnxauthoring:
# This is our pyramid application logger.
level : DEBUG
handlers : [console]
propagate : 0
transit_logger:
# This is the transit logger in pyramid_sawing.
level : INFO
handlers : [transit]
propagate : 0
waitress:
# The logger for the waitress http server.
# Note, that this logger is responsible for reporting 500 errors
# with the traceback.
level : DEBUG
propagate : 1
root:
level : NOTSET
handlers : [console]