mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Add python 2.3 logging to the tree. Only install if not present. Convert xend to use logging.
181 lines
3.1 KiB
INI
181 lines
3.1 KiB
INI
[loggers]
|
|
keys=root,log02,log03,log04,log05,log06,log07
|
|
|
|
[handlers]
|
|
keys=hand01,hand02,hand03,hand04,hand05,hand06,hand07,hand08,hand09
|
|
|
|
[formatters]
|
|
keys=form01,form02,form03,form04,form05,form06,form07,form08,form09
|
|
|
|
[logger_root]
|
|
level=NOTSET
|
|
propagate=1
|
|
channel=
|
|
parent=
|
|
qualname=(root)
|
|
handlers=hand01
|
|
|
|
[logger_log02]
|
|
level=DEBUG
|
|
propagate=1
|
|
channel=log02
|
|
parent=(root)
|
|
qualname=log02
|
|
handlers=hand02
|
|
|
|
[logger_log03]
|
|
level=INFO
|
|
propagate=1
|
|
channel=log03
|
|
parent=log02
|
|
qualname=log02.log03
|
|
handlers=hand03
|
|
|
|
[logger_log04]
|
|
level=WARN
|
|
propagate=0
|
|
channel=log04
|
|
parent=log03
|
|
qualname=log02.log03.log04
|
|
handlers=hand04
|
|
|
|
[logger_log05]
|
|
level=ERROR
|
|
propagate=1
|
|
channel=log05
|
|
parent=log04
|
|
qualname=log02.log03.log04.log05
|
|
handlers=hand05
|
|
|
|
[logger_log06]
|
|
level=CRITICAL
|
|
propagate=1
|
|
channel=log06
|
|
parent=log05
|
|
qualname=log02.log03.log04.log05.log06
|
|
handlers=hand06
|
|
|
|
[logger_log07]
|
|
level=WARN
|
|
propagate=1
|
|
channel=log07
|
|
parent=log06
|
|
qualname=log02.log03.log04.log05.log06.log07
|
|
handlers=hand07
|
|
|
|
[handler_hand01]
|
|
class=StreamHandler
|
|
level=NOTSET
|
|
formatter=form01
|
|
stream=sys.stdout
|
|
args=(sys.stdout,)
|
|
|
|
[handler_hand02]
|
|
class=FileHandler
|
|
level=DEBUG
|
|
formatter=form02
|
|
filename=python.log
|
|
mode=w
|
|
args=('python.log', 'w')
|
|
|
|
[handler_hand03]
|
|
class=handlers.SocketHandler
|
|
level=INFO
|
|
formatter=form03
|
|
host=localhost
|
|
port=handlers.DEFAULT_TCP_LOGGING_PORT
|
|
args=('localhost', handlers.DEFAULT_TCP_LOGGING_PORT)
|
|
|
|
[handler_hand04]
|
|
class=handlers.DatagramHandler
|
|
level=WARN
|
|
formatter=form04
|
|
host=localhost
|
|
port=handlers.DEFAULT_UDP_LOGGING_PORT
|
|
args=('localhost', handlers.DEFAULT_UDP_LOGGING_PORT)
|
|
|
|
[handler_hand05]
|
|
class=handlers.SysLogHandler
|
|
level=ERROR
|
|
formatter=form05
|
|
host=localhost
|
|
port=handlers.SYSLOG_UDP_PORT
|
|
facility=LOG_USER
|
|
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
|
|
|
|
[handler_hand06]
|
|
class=handlers.NTEventLogHandler
|
|
level=CRITICAL
|
|
formatter=form06
|
|
appname=Python Application
|
|
dllname=
|
|
logtype=Application
|
|
args=('Python Application', '', 'Application')
|
|
|
|
[handler_hand07]
|
|
class=handlers.SMTPHandler
|
|
level=WARN
|
|
formatter=form07
|
|
host=localhost
|
|
port=25
|
|
from=from@abc
|
|
to=user1@abc,user2@xyz
|
|
subject=Logger Subject
|
|
args=('localhost', 'from@abc', ['user1@abc', 'user2@xyz'], 'Logger Subject')
|
|
|
|
[handler_hand08]
|
|
class=handlers.MemoryHandler
|
|
level=NOTSET
|
|
formatter=form08
|
|
capacity=10
|
|
flushlevel=ERROR
|
|
target=
|
|
args=(10, ERROR)
|
|
|
|
[handler_hand09]
|
|
class=handlers.HTTPHandler
|
|
level=NOTSET
|
|
formatter=form09
|
|
host=localhost
|
|
port=9022
|
|
url=/log
|
|
method=GET
|
|
args=('localhost:9022', '/log', 'GET')
|
|
|
|
[formatter_form01]
|
|
format=F1 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form02]
|
|
format=F2 %(asctime)s %(pathname)s(%(lineno)d): %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form03]
|
|
format=F3 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form04]
|
|
format=%(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form05]
|
|
format=F5 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form06]
|
|
format=F6 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form07]
|
|
format=F7 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form08]
|
|
format=F8 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|
|
[formatter_form09]
|
|
format=F9 %(asctime)s %(levelname)s %(message)s
|
|
datefmt=
|
|
|