Skip to content

romanmelko/splunk-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

splunk-logger

Custom Python logger for Splunk Modular Input

Use the following to use this logger:

log = mylogger.Logger(level='INFO')
# If you'd like to set/change Splunk Modular Input Name in log message and/or to dynamically change logging level:
for input_name, input_item in inputs.inputs.iteritems():
    log.source = input_name
    log.setLevel(input_item['log_level'])

About

Custom Python logger for Splunk Modular Input

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages