0

I am using Caliburn.Micro and NLOG. I have build my logging according to this sample: http://buksbaum.us/2010/08/08/how-to-do-logging-with-caliburn-micro/

This works well and as expected. But Caliburn sets the level of all its messages to info. I would prefer them to be Debug Statements. Is there an easy way to do that?

4

1 回答 1

1

Just change the NLogLogger implementation of the Info method from:

public void Info(string format, params object[] args)
{
    _innerLogger.Info(format, args);
}

to

public void Info(string format, params object[] args)
{
    _innerLogger.Debug(format, args);
}
于 2013-04-11T07:22:31.823 回答