splunk_handler and logbook
jvarghese at quixey.com
jvarghese at quixey.com
Thu Feb 26 14:37:45 EST 2015
More information about the Python-list mailing list
Thu Feb 26 14:37:45 EST 2015
- Previous message (by thread): splunk_handler and logbook
- Next message (by thread): Toying with pypy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I got the solution,
Use RedirectLoggingHandler, to redirect the logs to logbook,
from logging import getLogger
mylog = getLogger('My Log')
from splunk_handler import SplunkHandler
splunk = SplunkHandler(
... host='',
... port='',
... username='',
... password='',
... index='',
... verify=,
... source=""
... )
from logbook.compat import RedirectLoggingHandler
mylog.addHandler(RedirectLoggingHandler())
mylog.addHandler(splunk)
......
- Previous message (by thread): splunk_handler and logbook
- Next message (by thread): Toying with pypy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list