简体   繁体   中英

LOG4J Deadlock On ConsoleAppender

LOG4J seems to lock my consoleappender. If my consoleappender is locked by LOG4J, would also succeeding threads have a hard time writing to my stout and stderr?

How many threads at a time can write to the stdout?

Thanks

Only one thread can write to sysout / syserr . This is actually good, otherwise your logging statements would get mixed terribly.

I don't think Log4J deadlocks on ConsoleAppender (stack dump would be very useful). Maybe you are logging too much and other threads are waiting, but eventually reach the console?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM