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

Use simple logger #112

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Use simple logger #112

merged 1 commit into from
Apr 29, 2024

Conversation

lindseydew
Copy link
Contributor

What does this change?

This changes the library we use to produce the logs from Log4J to Simple Logger. This is because upgrading the Java version introduced a breaking change to the current logging config, which meant that log levels at debug was being outputted to Cloudwatch. After following the docs and this example, the app was still sending docs at Debug level.

Our use-case for logging can be fairly lightweight, and it turned out to be straightforward to configure the Simple Logger.

How to test

How can we measure success?

Have we considered potential risks?

Images

Accessibility

@waisingyiu
Copy link
Contributor

Hey, just out of curiority, why are the "simplelogger.properties" empty? Default settings are sufficient for us?

@lindseydew
Copy link
Contributor Author

Hey, just out of curiority, why are the "simplelogger.properties" empty? Default settings are sufficient for us?

Yeah, the default settings is to log at the level INFO: https://www.slf4j.org/api/org/slf4j/simple/SimpleLogger.html

I think that is fine for our use-case

Copy link
Contributor

@waisingyiu waisingyiu left a comment

Choose a reason for hiding this comment

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

👍

@lindseydew lindseydew merged commit 1ac12e4 into main Apr 29, 2024
2 checks passed
@lindseydew lindseydew deleted the ld/use-simple-logger branch April 29, 2024 10:51
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.

3 participants