1.2.1 • Published 6 years ago

logwriter v1.2.1

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

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

FeatureDescriptionState
Folder creationcreate Logfile and Folders when not existsstable
Logrotatecreate new Logfile when limit is reachedstable
LoglevelDEBUG, INFO, WARNING and ERROR Flagstable

Usage

const LOGGER = require('./../index');

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

Options

OptionDescription
paththe Path of the Logfile
maxsizemaximum Size of one Logfile in MB
loglevelLevel of Logfile 1 => ERROR, 2 => WARNING, 3 => INFO or 4 => DEBUG
synctimetime in ms when the Logger writes to File
encodingLogfile Encoding
1.2.1

6 years ago

1.2.0

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago