npm.io
1.2.0 • Published 2 years ago

@chargedcloud/logger

Licence
ISC
Version
1.2.0
Deps
2
Size
3 kB
Vulns
0
Weekly
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);