npm.io
1.0.0 • Published 2 years ago

@nassro190/nlog

Licence
MIT
Version
1.0.0
Deps
0
Size
5 kB
Vulns
0
Weekly
0

nlog

Simple Node.js Logging Library

Installation

Install nlog using npm:


npm install nlog
const { Logger, LogLevel, nlog } = require("nlog");

const log = new Logger({ production: true, prefix: "MyLibrary" });
log(LogLevel.Info, "Hello, World!");

// or

const newLog = nlog({ production: true, prefix: "MyLibrary" });
newLog(LogLevel.Info, "Hello, World!");

Keywords