@moaufmklo/logger

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i @moaufmklo/logger

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

5.26 kB

Total Files

4

Last publish

Collaborators

  • moaufmklo