An Operation Fails and "log4j:WARN No appenders could be found for logger(basicAuth.Main)" Is Displayed in Logs
Question
An application execution fails. Figure 1-6 shows the log information.
Answer
Check whether the compiled log4j.properties file exists in the bin directory of the project. If it does not, add the compilation path.
- In IntelliJ IDEA, choose File > Project Structure > Modules, and then add the conf folder that contains log4j.properties and UserInfo.properties as Source Folders.
- Compile the file again.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.