Closed sdyrby closed 6 years ago
JSNLog doesn't make a distinction between logging a string with exception info and logging any other string. At the moment, this is baked into the product, it is not configurable.
Re. your second point, I'm not sure this is a solution, but you can write an event handler that modifies the string with log info before it goes to the server side logging package. See http://jsnlog.com/Documentation/JavascriptLogging/OnLogging
Thank you the good reply 👍
Hi,
I'm trying to configure my simple JSNLog setup with NLog, running ASP.Net Core 2. For some reason I seem to get the stacktrace/exception inside of the NLog
${message}
, and not the${exception:format=toString}
. Is this intentional, or can I change this?Eg:
I also can't seem to make it break lines on
\n
. Tried a NLog REgex, but it absolutely will not accept\\n
. This migth be an NLog issue though.Eg:
I'd really like my logs to look like the following: