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

Add possibility to set log level in instance #13

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

mikejavier
Copy link

No description provided.

@@ -77,6 +77,23 @@ describe("simple-json-logger", () => {
// then
expect(instantiate).not.toThrow();
});

it("Should set level when provied in options", () => {
Copy link
Member

Choose a reason for hiding this comment

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

provided*

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good if you test the another 2 test cases:

  • When receive the log level from process.env;
  • When set the default log level when don't have any other.

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@tiagogoncalves89 tiagogoncalves89 merged commit 09b32b9 into master Sep 17, 2021
@tiagogoncalves89 tiagogoncalves89 deleted the log-level-in-options branch September 17, 2021 11:46
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