util.inspect() no longer logs to console after applying log4js #104

icelava opened this Issue Dec 24, 2012 · 0 comments


None yet

1 participant


Previously I was logging information directly to Node's console using util.log() and util.inspect() for debugging entire object graphs.

After using log4js to implement file logging, it appears util.inspect() no longer logs anything to anywhere. The setup code goes

appenders: [
{ type: 'console' },
{ type: 'file', filename: 'log/socket.log', category: 'socket' }
var logger = log4js.getLogger('socket');

The behaviour is the same regardless of the call to replaceConsole().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment