Skip to content

warezWally/meteor-log4js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

meteor-log4js

https://github.com/nomiddlename/log4js-node wrap for meteor

Install

$ meteor install adain:log4js

Environment variables

  • LOG_PATH : log file path (default path : service.log)
  • LOG_SIZE : rolling file size MB (default : 15MB)
  • LOG_COUNT: max log file count (default : 20)
  • LOG_REPLACE_CONSOLE : replace console (default 0 or 1)

Usage

LogSystem.insertLog("LOG TYPE", "Log test");
LogSystem.log("Log test");
LogSystem.insertLine();
LogSystem.insertError("ERROR TYPE", "Error log");
LogSystem.error("Error log");
LogSystem.debug("Debug message. (process.env.NODE_ENV === \"development\")");

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%