Thanks to visit codestin.com
Credit goes to github.com

Skip to content

added setup_logging() method in splunklib for logging and updated README.md files #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 4, 2022

Conversation

akaila-splunk
Copy link
Contributor

  • Used module-specific logger in splunklib code instead of root logger
  • Added new setup_logging() method in splunklib to set logging level, log format(optional) and date format(optional)
  • Updated REAME.md file with details of setup_logging() method
  • Updated searchcommands_app/README.md file with some details of logging.conf file and how to see debug logs
  • Here is an example of log message,
Before code change:
	DEBUG:root:Log message
After code change:
	2022-03-03 19:12:58 India Standard Time, Level=DEBUG, Pid=11120, Logger=splunklib.binding, File=binding.py, Line=72, Log message

- add default time and log formatter in setup_logging() method
- add details of setup_logging() method and logging.conf files in README.md file
Copy link
Contributor

@fantavlik fantavlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Thanks for walking us through the design along the way on our weekly syncs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants