开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜