This question is a simple improvement of this earlier question.
In this earlier question, I wanted NLog
to limit the amount of identical logs, but when thinking about this: if NLog
remembers the last thing it has logged, I can limit that myself, simply by saying:
if (_logger.last_log_message() != "some_object is null")
{
_logger.Debug("some_object is null (possible multiple times)");
}
Is this possible?