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

Simple logging API; defaults to console #560

Closed
wants to merge 5 commits into from
Closed

Conversation

bretambrose
Copy link
Contributor

Needed for MQTT request-response browser implementation. If reasonable, we should add lightweight logging to MQTT wrappers as well.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

FATAL = 1,
/** Only errors */
ERROR = 2,
/** Only warnings and errors */
Copy link
Contributor

Choose a reason for hiding this comment

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

Extremely Trivial: This is the only comment that explicitly calls out itself along with another log category. It's unlikely but this may cause someone to assume that later levels are not inclusive of previous log levels.


/**
* Sets the amount of detail that will be logged
* @param level - maximum level of logging detail. Log invocations at a higher level of detail will be ignored.
Copy link
Contributor

Choose a reason for hiding this comment

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

Related: This deffo clears up the issue above for the most part.

@bretambrose bretambrose closed this Dec 3, 2024
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