I've tried to add custom ULS logging to my SP Feature, the feature code runs correctly and I can see the results in my library, but none of the logging appears to occur. I've based this off a few online blogs (listed at the end), have I done something wrong? I'm viewing the ULS log through ULSViewer.
private void writeLog(string log)
{
SPDiagnosticsService.Local.WriteTrace(0,
new SPDiagnosticsCategory("TCBS Email Handler", TraceSeverity.Medium, EventSeverity.Information),
TraceSeverity.Medium,
"TCBS: {0}",
new object[] { log }
);
}
public override void EmailReceived(SPList list, SPEmailMessage emailMessage, String receiverData)
{
writeLog("Beginning metadata extraction.");
...
}
Blogs used as reference: