on-internet
← Community

Node.js Logging

Stack Overflow ·

Is there any library which will help me to handle logging in my Node.Js application? All I want to do is, I want to write all logs into a File and also I need an options like rolling out the file after certain size or date. I have incorporated log4js im trying to keep all the configuration details in one file and use only the methods in other application files for ease of maintenance. But it doesnt work as expected. Here is what I'm trying to do var log4js = require('log4js'); log4js.clearAppenders() log4js.loadAppender('file'); log4js.addAppender(log4js.appenders.file('test.log'), 'test'); va

Comments

Sign in or sign up to comment and upvote.

No comments yet.