# Example logging configuration file for Pyro.
# Pyro uses two loggers:
#	Pyro.system		(pyro itself)
#	Pyro.user		(user logger)

[loggers]
keys=root,systemLog,userLog

[handlers]
keys=rootLog_stderr,systemLogFile,userLogFile

[formatters]
keys=pyroFormatter

[logger_root]
level=NOTSET
handlers=rootLog_stderr

[logger_systemLog]
qualname=Pyro.system
level=DEBUG
handlers=systemLogFile
propagate=0

[logger_userLog]
qualname=Pyro.user
level=DEBUG
handlers=userLogFile
propagate=0

[handler_rootLog_stderr]
class=StreamHandler
level=NOTSET
args=(sys.stderr,)

[handler_systemLogFile]
class=FileHandler
formatter=pyroFormatter
args=("custom_system.log","a")

[handler_userLogFile]
class=FileHandler
formatter=pyroFormatter
args=("custom_user.log","a")

[formatter_pyroFormatter]
format=CUSTOM!! %(asctime)s [%(process)d:%(thread)d] ** %(levelname)s ** %(message)s
