Skip to content
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

feat: Add JSON Log Support #19

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vbyrd
Copy link

@vbyrd vbyrd commented Jul 10, 2024

JSON logging is beneficial and recommended for ingestion into log management and analytics platforms such as Datadog.

References:

A bit of refactoring of the logging implementation was done as well. This should make it clear which logging instance is being used throughout.

Example Output:

{"asctime": "2024-07-10 22:53:31,912", "name": "root", "levelname": "INFO", "message": "Verbose Logging Enabled...", "taskName": null}
{"asctime": "2024-07-10 22:53:31,914", "name": "root", "levelname": "INFO", "message": "Searching for a valid settings.conf file.", "taskName": null}
{"asctime": "2024-07-10 22:53:31,915", "name": "root", "levelname": "INFO", "message": "Settings.conf found.", "taskName": null}
{"asctime": "2024-07-10 22:53:31,915", "name": "root", "levelname": "ERROR", "message": "Error: Invalid Kandji Tenant, check your settings.conf or environment variables and try again.", "taskName": null} 

@snipe snipe requested a review from jerm July 11, 2024 07:33
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.

1 participant