Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 646 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 646 Bytes

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\")");