Castle logging facade and NLog
I'm using Castle for logging facade. I have problem when my logger is logging message. The callsite is not my Namespace.Class but is castle facade: Castle.Services.Logging.NLogIntegration.NLogLogger开发者_开发百科.Debug
So, how to set a callsite to be my real class that is calling this logger, and not the Castle's Nlog implementation?
I was able to solve this by creating logger with name of the class in which logger is and by changing configuration file to write logger name instead of call site.
精彩评论