0.0.0 • Published 5 years ago

@lazh/logger v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Lazh-Logger

Description

Utility to various application for logging.

Installation

Just type the following statement to install library.

npm install --save @lazh/logger

Usage

var logger = require("@lazh/logger");

It have 2 Modules are

  1. LogLevel
  2. Logger

LogLevel :

Declaration :

    const log = new logger.Logger();

Options :

LevelNameColor
0OffNone
1ErrorRed
2WarningYellow
3InfoBlue
4DebugGray

Logger :

Declaration :

    const LogLevel = logger.LogLevel;

Options :

MethodDescriptionDefault Level
enableProductionModeEnables production mode with ParamsWarning - Can Change Via Params
enableTestModeEnables Testing mode with ParamsDebug - Can Change Via Params
debugLogs with Debug with MessageDebug
infoLogs with Info with MessageInfo
warnLogs with Warning with MessageWarning
errorLogs with Error with MessageError
levelReturn Current Log Level

Credits

This Library is created based on Base Source used by @ngX-Rocket

License

This Package was created under the MIT license.

0.0.0

5 years ago