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
Configuring format.errors doesn't seem to have any effect. The attached MWE instantiates 3 loggers with different configuration. All seem to result in the same behavior (which is: append error message to log message, and print the stack).
What version of Logform presents the issue?
2.7.0
What version of Node are you using?
v20.18.3
If this is a TypeScript issue, what version of TypeScript are you using?
5.6.3
If this worked in a previous version of Logform, which was it?
No response
Minimum Working Example
importwinston,{createLogger,format}from"winston";constthrowError=()=>{thrownewError('** error message **')};constfoo=()=>throwError();constsomeFormat=format.json();//or prettyPrint. or simpleconstwithErrors=format.combine(someFormat,format.errors({stack: true}),);constwithErrorsNoStack=format.combine(someFormat,format.errors({stack: false}),);consttransports=[newwinston.transports.Console()];try{foo();}catch(e){createLogger({format: withErrors, transports}).error('logger with errors(stack:true) :',e);createLogger({format: withErrorsNoStack, transports}).error('logger with errors(stack:false) :',e);createLogger({format: someFormat, transports}).error('logger w/o format.errors:',e);}
Additional information
No response
🔎 Search Terms
stack error
The text was updated successfully, but these errors were encountered:
The problem
Configuring
format.errors
doesn't seem to have any effect. The attached MWE instantiates 3 loggers with different configuration. All seem to result in the same behavior (which is: append error message to log message, and print the stack).What version of Logform presents the issue?
2.7.0
What version of Node are you using?
v20.18.3
If this is a TypeScript issue, what version of TypeScript are you using?
5.6.3
If this worked in a previous version of Logform, which was it?
No response
Minimum Working Example
Additional information
No response
🔎 Search Terms
stack error
The text was updated successfully, but these errors were encountered: