FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added setup_logging() method in splunklib for logging and updated README.md files by akaila-splunk · Pull Request #437 · splunk/splunk-sdk-python · GitHub

Repository navigation

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

Merged
akaila-splunk merged 3 commits into
developfrom
DVPL-10608
Mar 4, 2022
Merged

akaila-splunk merged 3 commits into
developfrom
DVPL-10608

Conversation

Copy link
Copy Markdown
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

fantavlik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL