No appender named file could be found




















Already have an account? Sign in here. Share More sharing options Followers 0. Recommended Posts. Posted May 5, Link to comment Share on other sites More sharing options Follow Author.

Comments TejaMiryala says:. October 9, at pm. June 14, at am. December 15, at am. Leave a Reply Cancel reply Your email address will not be published. This Short introduction to log4j guide is a little bit old but still valid. Second approach is to add this standard log4j. Disclaimer: This content is shared under creative common license cc-by-sa 3.

It is generated from StackExchange Website Network. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

I'm using log4j in a project for the first time, and I'm trying to use a custom configuration for the log output. I want the logger configuration to be in a custom file, not log4j. This is what I have right now:. I'd expect this to result in the logger writing that one statement to the console. Instead, I get with the -Dlog4j. I did as the first answer suggests - moved the log4j configuration before and added rootLogger to the configuration file log4j. Then I tried to modify the config file a bit more, and ended up with this:.

I would've expected getLogger "testLogger1" to do that. You should also define a root logger in your configuration to avoid "Could not find root logger information"; for example:.



0コメント

  • 1000 / 1000