Writes trace information to the trace log, including any user-defined categories and trace messages. All warnings appear in the log as red text.
- msg
- a string
- category
- The trace category that receives the message.
Every time the erload:System.Web.TraceContext.Warn method is called, a System.Web.TraceContext trace message is added to the TraceContextEventArgs.TraceRecords messages collection, which is accessible when you handle the TraceContext.TraceFinished event. The message is added with its TraceContextRecord.IsWarning property set to true and its TraceContextRecord.ErrorInfo property set to null.