Running sql profiler I ca see that everytime I submit a logentry the stored procedure AddCategory gets called:
exec AddCategory @categoryName=N'General',@logID=103.
Why is this, as my c# code is straight from the documentation, i.e.:
LogEntry log = new LogEntry();
log.EventId = 300;
log.Message "test message";
log.Severity = TraceEventType.Information;
log.Priority = 5;
I only have one category source defined in my config called 'Genera'.
I have tried taking out the line
from the above code but still this AddCategory executes.
Any ideas would be greatly appreciated.