Jenkins Log4j warning

1,014 views
Skip to first unread message

Gaurang shah

unread,
Sep 6, 2013, 8:03:13 AM9/6/13
to jenkins...@googlegroups.com
Hi Guy, 

I have configured log4j in my project, however the problem is when i run that in jenkins i get following log4j jenkins. have i missed something in log4j.properties file or have i misplaced it ??

I am using maven project. 
Error Messages
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Location of the log4j.properties -  src\test\java

log4j.properties:
# Root logger option
log4j.rootLogger=INFO, stdout
 
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

Baptiste Mathus

unread,
Sep 8, 2013, 4:06:14 PM9/8/13
to jenkins...@googlegroups.com
Maven question. Please better post on Maven users mailing list next time.

As for your issue, move your log4j.properties file to src/test/resources.

Cheers


2013/9/6 Gaurang shah <gauran...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor ! nbsp;!

Gaurang shah

unread,
Sep 10, 2013, 1:31:57 AM9/10/13
to jenkins...@googlegroups.com
I don't think it is a maven question, as when i run project thorough maven i don't see any warning, however when i run though Jenkins then i see log4j warning and so many other logs and mention below 

Please guys let me know how to get rid of this warning and logs messages.

log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f C:\Users\gaurang_shah\workspace\MavenTest\pom.xml checkstyle:checkstyle test
[pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - Scanning for projects...
[pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - Scanning for projects...
[pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener 
....
.... 

Gaurang Shah
Blog: qtp-help.blogspot.com
Mobile: +91 738756556


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/kYcWTysgIok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Baptiste Mathus

unread,
Sep 10, 2013, 2:42:47 AM9/10/13
to jenkins...@googlegroups.com

Did you apply what I asked?


" As for your issue, move your log4j.properties file to src/test/resources."

With maven, only source code goes into src/*/java. .properties must be inside src/*/resources.

Gaurang shah

unread,
Sep 10, 2013, 3:08:28 AM9/10/13
to jenkins...@googlegroups.com
Hi Mathus,


I did what you suggested, moved log4j.property file in src\test\resources folder, however it still shows the warning.

Gaurang Shah

Gaurang Shah
Blog: qtp-help.blogspot.com
Mobile: +91 738756556


Shrikant Nanda

unread,
Jun 2, 2016, 10:54:27 AM6/2/16
to Jenkins Users
Hi Gaurang, Did you manage to find solution of this problem?

-Shrikant
Reply all
Reply to author
Forward
0 new messages