Hi.
I'm currently trying to get the stack trace in C# in one event, not in multiple events. Please look at the attachment.
Is there any way of doing this? I've messed around with the props.config a while, but I can't get it to work.
I've been trying to follow this article: http://blogs.splunk.com/2010/02/18/breaking-up-is-hard-to-do/.
The logfiles usually looks something like this:
<188>May 12 07:15:23 NOQ06WS0104: [Platform - WARN] 2015-05-12T07:15:23.279, { MD_Class="Web.Configuration.NLogLogger", Message="10s warning - due time is Monday, May 11, 2015 2:07:31 PM", }, Ude.Shared.Logging.Logger.Log
<188>May 12 07:15:23 NOQ06WS0104: [Platform - WARN] 2015-05-12T07:15:23.279, { MD_Class="Web.Configuration.NLogLogger", Message="10s warning - due time is Monday, May 11, 2015 2:07:31 PM", }, Ude.Shared.Logging.Logger.Log
<188>May 12 07:15:23 NOQ06WS0104: [Platform - WARN] 2015-05-12T07:15:23.279, { MD_Class="Web.Configuration.NLogLogger", Message="10s warning - due time is Monday, May 11, 2015 2:07:31 PM", }, Ude.Shared.Logging.Logger.Log
<187>May 11 15:09:06 NOQ06WS0104: [Platform - ERROR] 2015-05-11T15:09:06.761, { MD_Application="Unknown", MD_Class="Web.EPiServerApplication", Message=" Url: https://xxx.yyy.zz/Api/Facebook Controller: Facebook", }, The operation was canceled., at System.Threading.CancellationToken.ThrowIfCancellationRequested() at System.Web.Http.WebHost.HttpControllerHandler.<WriteBufferedResponseContentAsync>d__1b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.WebHost.HttpControllerHandler.<CopyResponseAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.WebHost.HttpControllerHandler.<ProcessRequestAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously), Shared.Logging.Logger.Log
One line should contain the [Platform -]-pattern. I've tried to use several configurations and when I'm matching against this pattern it breaks correctly, but I still get stack traces which are on multiple lines like in the attachment.
We're using NLog for logging.
... View more