I need to log to a file because the customer doesn't have a console of something where I can log to with log4net. Now I read that the FileAppender is not thread safe. Is there anyhow a way to log to file within an app that logs out of different threads or what would be a common alternative?
相关问题
- 最新的log4net是不是不支持写入到mysql了。
- How to let a thread communicate with another activ
- Why it isn't advised to call the release() met
- ThreadPoolTaskScheduler behaviour when pool is ful
- Custom TaskScheduler, SynchronizationContext?
相关文章
- 最新的log4net是不是不支持写入到mysql了。
- How should I configure log4net to write to %LOCALA
- Log4Net Multiple Projects
- Difference between Thread#run and Thread#wakeup?
- Java/Spring MVC: provide request context to child
- Threading in C# , value types and reference types
- RMI Threads prevent JVM from exiting after main()
- Async task does not work properly (doInBackground
Log4Net itself is thread-safe even if
FileAppender
isn't - the framework manages everything for you. So long as you log in the normal way (rather than directly writing to the appender) you should be fine.