npm.io
1.0.9 • Published 3 years ago

wfl

Licence
MIT
Version
1.0.9
Deps
2
Size
14 kB
Vulns
0
Weekly
0
Stars
1

WFL

Log Management System

Table of Contents

Install

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.6 or higher is required.

Installation is done using the npm install command:

$ npm i wfl

Introduction

A log management system, which can help manage logs more easily.

Here is an example on how to use it:

let Log = require('wfl');

Log.error('Username Invalid');

Configuration

{
  "wfl": {
    "size": "15m",
    "where": {
      "error": "18m"
    },
    "path": "./Logger",
    "offset": "2h",
    "accessToDelete": true
  }
}

Path => File storage location

Size => Maximum size of each file

Where => Delete old files from some folders

Offset => Maximum time for delete old file

AccessToDelete => update Disables deleting old files from disk

Keywords