A package to log stuff in a better format, as well as adding color functionnality!
Now working with version
1.1.2
of@protagonists/coerce
and1.1.2
of@protagonists/emitter
The content below does not correspond to the object structure of the objects
The package allows for a slightly better visual on objects and whatnot, as well as allow users to add color to the logs!
npm install @protagonists/logger
const { Logger, Color } = require("@protagonists/logger");
// Imports
const { Logger } = require("@protagonists/logger");
// Create new Logger instance
const myLogger = new Logger({ file: "./someExistingFile.txt" });
// Log some text
myLogger.log("Hello world!");
./someExistingFile.txt
Logger: Hello world!