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

README.md mistyped #1

Open
Riccardo2s opened this issue Oct 13, 2021 · 0 comments
Open

README.md mistyped #1

Riccardo2s opened this issue Oct 13, 2021 · 0 comments

Comments

@Riccardo2s
Copy link
Contributor

type error in README.md file:

in Basic Usage section

 1. import logger from '@infobiotech/js-logger';
 2.
 3. // other imports...
 4.
 5. // Initialize the logger with application-wide log level
 6. logger.init({
 7.   logLevel: logger.INFO,
 8. });
 9. 
10. // for each container, set the name and the log level
11. const logContainerName = 'App';
12. logger.setLogLevel(log.INFO, logContainerName);
13.
14. logger.info(logContainerName, 'methodName', 'message', {
15.   // data keys to be logged
16. });

line 12: log.INFO should be logger.INFO

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

No branches or pull requests

1 participant