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

setting log level to error #102

Open
vrfox opened this issue Sep 28, 2023 · 1 comment
Open

setting log level to error #102

vrfox opened this issue Sep 28, 2023 · 1 comment

Comments

@vrfox
Copy link

vrfox commented Sep 28, 2023

From reading the winston-logzio, there is an object part that I didn't found on here

const logObject = Object.assign({},
      info,
      msg, {
        level: info[LEVEL] || this.level,
        name: this.name,
      });

    this.logzioLogger.log(logObject);
    callback(null, true);
  }
@vrfox vrfox changed the title support for log level documentation for setting log level Sep 28, 2023
@vrfox vrfox changed the title documentation for setting log level setting log level to error Sep 28, 2023
@AlonMiz
Copy link
Contributor

AlonMiz commented Oct 15, 2023

hi, we published how we use our logger internally for our own node js microservices
you can take a look at how we implemented log level and you might be even possible to use that package in your own codebase
https://www.npmjs.com/package/@logzio-node-toolbox/logger
it is a very powerful logger, and easy to use

example of how to implement log level
https://github.com/logzio/node-toolbox/blob/master/packages/logger/src/logger.js

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

2 participants