Get Started
Setting up and using loggy is super simple. Just install, instanstiate, and impress.
npm install @loggydev/loggy-node
Set up your logger
const loggy = CreateLoggy({ level: "info", // debug, info, warn, or error identifier: "my-app", // an identifier for your application or service color: true, // enable colors compact: false, // compact mode for json objects timestamp: true // show the timestamp in the log message });
loggy.log("This is a log message"); loggy.info("This is an info message"); loggy.warn("This is a warn message"); loggy.error("This is an error message");
It’s as simple as that.
Further reading
Section titled “Further reading”- See more about the Loggy instance