The context is not logged in non buffered mode. This
applies to all different loggers. It is caused by a bug in
the Logger class. In the different (overloaded) log
methods the current context is saved in a local variable
context. But this context is never assigned to the
created event in the non buffered mode. This can be
solved by changing the following lines :
try {
Write(ev);
}
catch (Exception e) {
exceptionHandler.Handle(new LoggerException(this,
ev, e));
}
to something like this :
try {
if(isContextEnabled)
ev.Context = context;
Write(ev);
}
catch (Exception e) {
exceptionHandler.Handle(new LoggerException(this,
ev, e));
}
in the log methods of Logger.