I am working on a maven project, i put the log4j.xml in this path: /src/main/java/log4j.xml and it is working correctly, Can i move the log4j.xml configuration file to /src/main/resources/ ?? what is the new configurations will be?
How can Change log4j configuration file path?
486 views Asked by Ayatullah Abdulhakim At
1
There are 1 answers
Related Questions in MAVEN
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- JavaFX build generating a blank gui with primary view and secondary view buttons
- Maven (Java) does not build dependencies into a compiled file
- java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- BeanCreationException when deploying Spring Boot app
- How to run Parallel tests by groups using Maven and TestNG?
- Get control flow information with JaCoCo
- Failed to instantiate [com.docusign.esign.client.ApiClient]
- Gradle - Groovy vs Gradle - Kotlin vs Maven for Java Spring Boot web application project on IntelliJ
- Intelij ultimate and spring boot giving me errors
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Messing up with conflict between spring jcl and commons-logging.jar
- Run java program
- How to add a Maven project to an Ubuntu image in Docker
Related Questions in LOG4J
- Purpose of setting debug="false" in log4j at configuration level
- log4j-api 2.20.0 causing : java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil
- log4j2 CronTriggeringPolicy results incorrect date in filename along with SizeBasedTriggeringPolicy
- Log4j is not writing logs into file
- How to print hudi logs in aws emr serverless application
- Is there a way to color-code Log4J2 in Windows Powershell?
- Not able to change the logging level log4j on Payara server
- How to implement log4j in IBM BPM?
- How can I change logger pattern?
- Log4J 2 - Each run has its own unique folder to store logs, and automatically delete old logs/folders
- Disable default logging in /opt/engine.log
- Native Compile java.lang.NoSuchMethodException: org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>() exception for apache-poi
- log4j 1.2.x outputs JSON format
- log4j java - dynamic logger creation in multi-thread environment
- Log4j is not accessible in eclipse
Related Questions in SPRING-4
- Migration Spring v2 to Spring v4 for org.springframework.cloud.stream.annotation
- Spring 4.3 SSE returns net::ERR_INCOMPLETE_CHUNKED_ENCODING 200
- Communication between two spring controllers from different spring applications deployed into single tomcat server
- How the synchronization between the poller and the service activator is handled by default in Spring Integration 4.3
- Redirect interceptor gets a wrong RequestURI in spring MVC
- How do you get property placeholders from one .properties resolved from another .properties through jasypt?
- Spring: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler
- Spring security for non-Springboot app is not working
- Struts 2.5 Junit test setup with spring integration
- Spring4 MVC keep session alive forever
- Spring @Conditional based on a value in database table
- springdoc-openapi + Spring 4 Compatibility
- aws sqs starts up with an NoSuchMethodError error
- Spring 4 Session Cookie change field
- Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Log4j reads its properties file from the classpath, so your properties file can be placed anywhere that's on the classpath without needing any configuration change to tell it where to look. Anything placed in
/src/main/javaand/src/main/resourcesends up on the artifact classpath when maven builds, but/src/main/resourcesis the more appropriate place for a resource (anything that isn't compiled).