You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have the stacktrace printed on multiple lines , as it is done using console.log.
If I use json:false , the error is printed on a single line.
If I use json:false and prettyPrint :true, the error is printed as a JSON, contianing more information then I need like process, os, track, stack.
I would like to have only the stack printed in the case that I have an error.
Is there any way, as I could not find one.
I looked in the logger.js and changed :Logger.prototype._uncaughtException = function (err) {
var self = this,
responded = false,
info = exception.getAllInfo(err),
handlers = this._getExceptionHandlers(),
timeout,
doExit;
...
to info = exception.getAllInfo(err).stack , and it works, but I don't want to change the winston code in order to be able to have the stack nicely printed.
Thank you,
Ana
The text was updated successfully, but these errors were encountered:
Hello,
I would like to have the stacktrace printed on multiple lines , as it is done using console.log.
If I use json:false , the error is printed on a single line.
If I use json:false and prettyPrint :true, the error is printed as a JSON, contianing more information then I need like process, os, track, stack.
I would like to have only the stack printed in the case that I have an error.
Is there any way, as I could not find one.
I looked in the logger.js and changed :Logger.prototype._uncaughtException = function (err) {
var self = this,
responded = false,
info = exception.getAllInfo(err),
handlers = this._getExceptionHandlers(),
timeout,
doExit;
...
to info = exception.getAllInfo(err).stack , and it works, but I don't want to change the winston code in order to be able to have the stack nicely printed.
Thank you,
Ana
The text was updated successfully, but these errors were encountered: