MoaufmKlo / logger

Node.js module for simple, rotating, file-based logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logger

npm Version npm Downloads

Table of contents

About

Dependency-free Node.js module for simple, rotating, file-based logging

Installation

Use the package manager npm to install logger:

npm install @moaufmklo/logger

Usage

const Logger = require("@moaufmklo/logger");
const logger = new Logger({
    "logsPath": "./logs/"
});

logger.log("info", "An information log.");
logger.log("warn", "A warning log.");
logger.log("error", "An error log.");

Links

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Node.js module for simple, rotating, file-based logs

License:ISC License


Languages

Language:JavaScript 100.0%