My console appender in Log4J writes to server.log as well as to console. How I make it write only to console?

Most probably it is not so. Your console appender writes only to console, but you have defined some file appender somewhere. Keep in mind, that this appender could be defined in any ancestor of a class where logging occur, including rootLogger, and it is possible to have several appenders for any element.

If so, logging will occur also to this file appender.

Most probably it is not so. Your console appender writes only to console, but you have defined some file appender somewhere. Keep in mind, that this appender could be defined in any ancestor of a class where logging occur, including rootLogger, and it is possible to have several appenders for any element.

If so, logging will occur also to this file appender. Another possibility is to check that application and you use the same log4j configuration file. Sometimes log4j could use other configuration file than you thing of.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions