1.2.0 • Published 6 months ago
@chargedcloud/logger v1.2.0
@chargedcloud/logger
Logger is a module to help you log your messages to the console of your NodeJS application.
Installation • Usage • Methods
Installation
In your project directory, run the following command:
npm install @chargedcloud/logger
Usage
First, for you create an instance of the logger, you need to import the module:
// CommonJS
const createLogger = require("@chargedcloud/logger");
// ES6
import createLogger from "@chargedcloud/logger";
Then, you can create an instance of the logger:
const logger = createLogger(import.meta.url);