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 have a simple task that eludes me, and I don't know if the reason is this package or a limitation in cosole, or what.
I want to output using log.warn() a multi-line string. Especifically, the stack trace of an error object. I want it output in different lines, but all I can get is a single line with \n embeeded in it.
Is there a wait to output multiple lined-values from this package? If so, may I trouble you for the how?
Thank you.
The text was updated successfully, but these errors were encountered:
@webJose this library doesn't limit in any way multi-lline output, you may confirm with log.warn(new Error().stack) (and log-node writer) that multiple lines will be outputted.
In this case, string is treated as raw text (as if it's part of the first string argument), so eventual extra coloring, if needed should be added manually
Hello, me again.
I have a simple task that eludes me, and I don't know if the reason is this package or a limitation in cosole, or what.
I want to output using
log.warn()
a multi-line string. Especifically, the stack trace of an error object. I want it output in different lines, but all I can get is a single line with\n
embeeded in it.Is there a wait to output multiple lined-values from this package? If so, may I trouble you for the how?
Thank you.
The text was updated successfully, but these errors were encountered: