node.js - Logging server status -


i adding logs in application using log4js (not default sails logger). i'd able keep track of server status : when it's , down. should put logs able know when server down?

thanks bringing me out of darkness

i didn't test it, if want write log when server shutting down try use the exit event of process object

var log4js = require('log4js'); process.on('exit', function(code) {   var logger = log4js.getlogger();   logger.info("end of process"); }); 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -