Log4Net FileAppender not thread safe?
Asked Answered
P

1

13

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?

Phenosafranine answered 18/8, 2009 at 15:33 Comment(0)
M
16

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.

Miche answered 18/8, 2009 at 16:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.