nlog
NLog. Change class name
i\'m wondering if there is any way to change class name of logger instance at runtime ? i want not to create logger in every class but to inject it via constructor. but after i do it i get in file wro[详细]
2023-04-02 20:16 分类:问答where to write a log file?
I\'m using nlog to write log files for debugging purposes. Currently the log file location is set to:[详细]
2023-04-01 19:22 分类:问答Log current page url with NLog
I\'m trying to log the current pages URL as part of our NLog la开发者_JAVA百科yout. I\'ve scoured the NLog layout variables and have come up with nothing.[详细]
2023-04-01 18:26 分类:问答NLog - Save ${message} in multiple database columns
I\'d like to save the logged message ${message} in several columns in a database, as shown on the following example:[详细]
2023-03-31 16:06 分类:问答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开[详细]
2023-03-29 00:08 分类:问答Getting NLog to send out JSON with proper headers?
Trying to use NLog to send JSON-encoded logs out of our C# app, to dump them into CouchDB. However, using the Network target, I can\'t seem to find a way to set the Content-Type header properly; and C[详细]
2023-03-27 14:33 分类:问答Insert Guid with NLOG
I am getting the error Exception occurred in NLog ---> System.Data.SqlClient.SqlException: Conversion failed when converting from a character string to uniqueidentifier.[详细]
2023-03-24 21:44 分类:问答Are there any alternatives to Common.Logging? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-03-22 04:26 分类:问答How to use fully qualified class name as logger name with NLog?
I have a generic class: public class GenericClass<开发者_JAVA百科A> { private static readonly Logger Logger = LogManager.GetCurrentClassLogger();[详细]
2023-03-21 16:22 分类:问答NLog Custom Log Level Value
I have a database I\'m trying to write my开发者_JAVA技巧 messages to and would like to use the ${level} layout, but I need to translate it to the int value for reference to my own table that stores lo[详细]
2023-03-21 08:43 分类:问答