source: trunk/packages/xen-3.1/xen-3.1/tools/python/logging/logging-0.4.9.2/test/logconf.ini @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 3.1 KB
Line 
1[loggers]
2keys=root,log02,log03,log04,log05,log06,log07
3
4[handlers]
5keys=hand01,hand02,hand03,hand04,hand05,hand06,hand07,hand08,hand09
6
7[formatters]
8keys=form01,form02,form03,form04,form05,form06,form07,form08,form09
9
10[logger_root]
11level=NOTSET
12propagate=1
13channel=
14parent=
15qualname=(root)
16handlers=hand01
17
18[logger_log02]
19level=DEBUG
20propagate=1
21channel=log02
22parent=(root)
23qualname=log02
24handlers=hand02
25
26[logger_log03]
27level=INFO
28propagate=1
29channel=log03
30parent=log02
31qualname=log02.log03
32handlers=hand03
33
34[logger_log04]
35level=WARN
36propagate=0
37channel=log04
38parent=log03
39qualname=log02.log03.log04
40handlers=hand04
41
42[logger_log05]
43level=ERROR
44propagate=1
45channel=log05
46parent=log04
47qualname=log02.log03.log04.log05
48handlers=hand05
49
50[logger_log06]
51level=CRITICAL
52propagate=1
53channel=log06
54parent=log05
55qualname=log02.log03.log04.log05.log06
56handlers=hand06
57
58[logger_log07]
59level=WARN
60propagate=1
61channel=log07
62parent=log06
63qualname=log02.log03.log04.log05.log06.log07
64handlers=hand07
65
66[handler_hand01]
67class=StreamHandler
68level=NOTSET
69formatter=form01
70stream=sys.stdout
71args=(sys.stdout,)
72
73[handler_hand02]
74class=FileHandler
75level=DEBUG
76formatter=form02
77filename=python.log
78mode=w
79args=('python.log', 'w')
80
81[handler_hand03]
82class=handlers.SocketHandler
83level=INFO
84formatter=form03
85host=localhost
86port=handlers.DEFAULT_TCP_LOGGING_PORT
87args=('localhost', handlers.DEFAULT_TCP_LOGGING_PORT)
88
89[handler_hand04]
90class=handlers.DatagramHandler
91level=WARN
92formatter=form04
93host=localhost
94port=handlers.DEFAULT_UDP_LOGGING_PORT
95args=('localhost', handlers.DEFAULT_UDP_LOGGING_PORT)
96
97[handler_hand05]
98class=handlers.SysLogHandler
99level=ERROR
100formatter=form05
101host=localhost
102port=handlers.SYSLOG_UDP_PORT
103facility=LOG_USER
104args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
105
106[handler_hand06]
107class=handlers.NTEventLogHandler
108level=CRITICAL
109formatter=form06
110appname=Python Application
111dllname=
112logtype=Application
113args=('Python Application', '', 'Application')
114
115[handler_hand07]
116class=handlers.SMTPHandler
117level=WARN
118formatter=form07
119host=localhost
120port=25
121from=from@abc
122to=user1@abc,user2@xyz
123subject=Logger Subject
124args=('localhost', 'from@abc', ['user1@abc', 'user2@xyz'], 'Logger Subject')
125
126[handler_hand08]
127class=handlers.MemoryHandler
128level=NOTSET
129formatter=form08
130capacity=10
131flushlevel=ERROR
132target=
133args=(10, ERROR)
134
135[handler_hand09]
136class=handlers.HTTPHandler
137level=NOTSET
138formatter=form09
139host=localhost
140port=9022
141url=/log
142method=GET
143args=('localhost:9022', '/log', 'GET')
144
145[formatter_form01]
146format=F1 %(asctime)s %(levelname)s %(message)s
147datefmt=
148
149[formatter_form02]
150format=F2 %(asctime)s %(pathname)s(%(lineno)d): %(levelname)s %(message)s
151datefmt=
152
153[formatter_form03]
154format=F3 %(asctime)s %(levelname)s %(message)s
155datefmt=
156
157[formatter_form04]
158format=%(asctime)s %(levelname)s %(message)s
159datefmt=
160
161[formatter_form05]
162format=F5 %(asctime)s %(levelname)s %(message)s
163datefmt=
164
165[formatter_form06]
166format=F6 %(asctime)s %(levelname)s %(message)s
167datefmt=
168
169[formatter_form07]
170format=F7 %(asctime)s %(levelname)s %(message)s
171datefmt=
172
173[formatter_form08]
174format=F8 %(asctime)s %(levelname)s %(message)s
175datefmt=
176
177[formatter_form09]
178format=F9 %(asctime)s %(levelname)s %(message)s
179datefmt=
180
Note: See TracBrowser for help on using the repository browser.