Skip to content

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