Replies: 3 comments
-
Hi Alex, Please prepare a small but complete program that will reproduce the problem. What you sent is not enough to detect a problem, which may be in the code not in the config at all. |
Beta Was this translation helpful? Give feedback.
-
Removing the outputTemplate sort of worked. Adding "outputTemplate": "{Properties:j}" also sort of worked. When I say sort of, I also pushed some additional properties which are not being displayed, most probably due to the outputTemplate. My ultimate goal is to log json which may contain one or more objects as in the example below. My current direction is to push properties and then log them by building the outputTemplate. But I just don't know if this approach will work and if it will, how do I extract the ecxeptionDetail into the overall json:
|
Beta Was this translation helpful? Give feedback.
-
Feel free to reopen if you have more info. |
Beta Was this translation helpful? Give feedback.
-
I have the following appsettings config
And log using
_logger.Error(new TaskSchedulerException("qqq"), "www");
But nothing is being logged. Not sure where I'm going wrong.
Thanks
Alex
Beta Was this translation helpful? Give feedback.
All reactions