logwriter
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Build Status Coverage Status devDependency Status npm version npm npm npm npm npm

Logwriter

Simply Logfile writer that write Logfiles async. First all incoming Logs are write in Memory than an Interval writes the Memory to a Logfile and clears it.

Features

Feature Description State
Folder creation create Logfile and Folders when not exists stable
Logrotate create new Logfile when limit is reached stable
Loglevel DEBUG, INFO, WARNING and ERROR Flag stable

Usage

const LOGGER = require('./../index');
 
let l = new LOGGER({
    logfilepath: __dirname + '/logs/logfile.log',
    maxfilesize: 20
});

Options

Option Description
path the Path of the Logfile
maxsize maximum Size of one Logfile in MB
loglevel Level of Logfile 1 => ERROR, 2 => WARNING, 3 => INFO or 4 => DEBUG
synctime time in ms when the Logger writes to File
encoding Logfile Encoding

/logwriter/

    Package Sidebar

    Install

    npm i logwriter

    Weekly Downloads

    1

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • nodejayes