logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wei wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-365) ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogge
Date Wed, 21 Aug 2013 08:30:52 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13745869#comment-13745869
] 

wei wang commented on LOG4J2-365:
---------------------------------

Hi Remko,

Now I come to the basic things you have mentioned from the very beginning!  The -cp should
not have any space after ";"  after remove the space it works !!! Sorry :)

I will continue to look into how to deal with the lib\log4j-*.jar could be delivered with
my child.jar(otherwise the user will have to download log4j2 package them by themselves).

I used ant to build the jar however, it is not allowed to have serveral META-INF built so
I have to excludes=META-INF/**/* in the ant build which cause the problem for log4j to read
the properties file in the lib.

I have unpacked the lib\log4j-*.jar and repack them again with the child.class. No compile
error but missing log4j.properties in META-INFO ? (I did not know it is needed).

<zipfileset src="lib\log4j-core-2.0-beta7.jar" includes="**/*.class excludes="META-INFO/**/*"
/>"
<zipfileset src="lib\log4j-api-2.0-beta7.jar" includes="**/*.class excludes="META-INFO/**/*"
/>"




                
> ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogge
> -------------------------------------------------------------------------------
>
>                 Key: LOG4J2-365
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-365
>             Project: Log4j 2
>          Issue Type: Question
>          Components: log4j 1.2 emulation
>    Affects Versions: 2.0-beta7
>         Environment: windows7
>            Reporter: wei wang
>            Priority: Blocker
>              Labels: ERROR, SimpleLogge, StatusLogger, Unable, a, implementation,, locate,
logging, to, using
>             Fix For: 2.0-beta7
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> I have problem to make the logging work with the log4j2.xml  when packing into jar file.
> I have launcher.jar which calls oamcli.jar(has logging implementation and log is working
in eclipse)
> How ever when I try to run :
> java -Dlog4j.configurationFile=path\to\log4j2.xml  -cp  "launcher.jar; lib\*" .....
> I got a "ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger"
> Please give me some advice and where to look for the answer. 
> Thanks!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message