Jul 24, 2009 at 11:58 AM
Edited Jul 24, 2009 at 12:15 PM
Is it possible to log using only TraceListeners with out creating any catergory?
For ex In the code:
LogEntry le = new LogEntry();
le.Message = "Testing Logging Message";
le.EventId = 1111;
le.Title = "Title";
le.Priority = 1;
In the above code, Category : ' DBCategory' is added.
Is it possible to log with out this?
If am going to comment that in the code ,in Event log (added FormattedEventLogTraceListener in Logging Errors & Warnings) am getting error stating "There is no explicit mapping for the categories".