1.1.0 • Published 3 years ago

@moaufmklo/logger v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.