Seq Documentation and Support

Seq Documentation and Support

Welcome to the Seq documentation hub. You'll find comprehensive guides and documentation to help you start working with Seq as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    
Ask A Question

Questions

2

SEQ doesn't show the full stack trace .net

I have a MVC application that uses Seq. When an exception occurs, I am redirecting it to the seq as an error but it doesn't show the full stack trace which is really hard to understand the exact place of the code that get failed. I am reading seq config from app.config file as follows; <!--Serilog--> <add key="serilog:minimum-level" value="Debug" /> <add key="serilog:using" value="Serilog.Sinks.Seq" /> <add key="serilog:write-to:Seq.serverUrl" value="http://localhost:5342" /> And then ILogger log;= new LoggerConfiguration() .ReadFrom.AppSettings() .CreateLogger(); And then invoke log.Error catch (Exception ex) { log.Error("Error updating student details. StudentId:{0} Message:{1} Trace:{2}", someid, ex.Message, ex.StackTrace); throw ex; } My seq out put as follows, Please note that the full stack trace with line lumbers are missing. 31 Mar 2017 01:31:39.470 Error binding the student model StudentId:0 Message:Value cannot be null. Parameter name: String Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number,… Id ▾ Level (Error) ▾ Type ($61C10FBB) ▾ Pin ▾ Raw JSON 0 0 1 Value cannot be null. Parameter name: String 2 at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at SchoolAdmin.Web.Helpers.StudentModelBinder.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)

Posted by Hasitha Gamage about a year ago