0.0.3 • Published 7 years ago

console_logger v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Logger

Manage all your logs in file automatically with line numbers and file names

Installation

	npm install console_logger

Features

  • Automatically log file managment
  • Full Control over terminal logs
  • Log files path control
  • Special Log function for direct use

Quick Start

  npm install console_logger 

Now require it in your sever file with self invoke function

  require('console_logger')();

Now use Log() or console.log() in your project

Logger(Optional Parameters)

KeyValueDefaultDescription
consoletrue/falsetrueAllow console.log to write logs in file
logtrue/falsetrueAllow Log to write logs in file
showinterminaltruetrue/falseshow logs in terminal
pathstringlogPath for creating logs with corresponding to Server File
Note

If path parameter will not provided then a log folder will created and logs will genrate in it

Description of Logs

KeyValue
FromConsole/Log (from which function log genrated)
TimeHH:MM:SS
fileFilename
lineLine Number in File
msgMessage in Log/console

Example

	require("console_logger")({console :true , log : true , showinterminal : true , log : "log"}) 
  Log("this is a example");
  or
  console.log("this is a example");