log4net
Previous filename in RollingFileAppender
I am using Log4Net for logging in an application I\'ve written. For writing to the log file, I use a RollingFileAppender with 5 backups and a max filesize of 250KB.[详细]
2023-03-03 08:55 分类:问答Encapsulating a log message
I am looking for an efficient and generic design that encapsulates a log message. I often find myself writing the same logger.XXXFormat() many times and I would like to encapsulate those messages into[详细]
2023-03-03 07:05 分类:问答Proper way to shutdown a logger instance in log4Net
I have a class to whose every instance i create a new logger and attache a buffer appender and a flie appender to it. Everything is being done runtime and no information is picked from the config file[详细]
2023-03-03 03:55 分类:问答Castle Windsor error using log4net in WinForm app
I\'ve this error using Windsor Castle with log4net in WinForm application. Error: Could not convert from \'Castle.Services.Logging.Log4netIntegration.Log4netFactory,Castle.Services.Logging.Log4netIn[详细]
2023-03-03 00:22 分类:问答How do I match a message with a newline in log4net with the stringToMatch filter?
I\'m having trouble with configuring a StringMatchFilter to match a string in a message with newlines. I want to skip some messages and I[详细]
2023-03-02 19:09 分类:问答Using log4net for multithreaded application
I have a application which uses .net Thread-pool to have multiple threads.It uses log4net 开发者_JS百科for write logs to a plain text file. Is it a good idea to use log4net for asynchronous logging li[详细]
2023-03-01 15:56 分类:问答Create a strongly typed log4net level from a string
I noticed log4net has a strongly typed Level class. Does anyone know if there\'s a way to create a Level object by parsing a log level string?[详细]
2023-03-01 14:18 分类:问答log4net: Logging XML as string
I am experiencing a strange problem when I log the XML contents to the database. I have a table in Oracle 9i which has a CLOB column. I am logging the contents of my input XML to this column. When I l[详细]
2023-03-01 02:05 分类:问答Changing logging level in log4net xml
I\'ve a c# 3.5 winforms desktop app running on production server.It uses log4net for logging. The requirement is that the user should be able to switch the logging level at run time...for eg:if the l[详细]
2023-02-28 22:00 分类:问答Log4net won't log to console (WinForms app)
I\'m just starting using the Log4Net library and having problems configuring it. I don\'t need anything special. I\'m using it for a Winforms application and need basic file and console logging. To ke[详细]
2023-02-28 19:46 分类:问答