google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

failed to create logger from logAdapter: #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.運作new NutIoc(new JsonLoader("xxx.js"));
2.
3.

What is the expected output? What do you see instead?
failed to create logger from logAdapter: org.nutz.log.impl.Log4jAdapter,
nullLog will be used instead of it.
Can NOT find field [TRACE] in class [org.apache.log4j.Level] and it's
parents classes
java.lang.NoSuchFieldException: Can NOT find field [TRACE] in class
[org.apache.log4j.Level] and it's parents classes
    at org.nutz.lang.Mirror.getField(Mirror.java:367)
    at org.nutz.log.impl.Log4jAdapter.initLevelStuff(Log4jAdapter.java:122)
    at org.nutz.log.impl.Log4jAdapter.<init>(Log4jAdapter.java:88)
    at org.nutz.log.impl.Log4jAdapter.getLogger(Log4jAdapter.java:285)
    at org.nutz.log.LogFactory.getLog(LogFactory.java:69)
    at org.nutz.log.LogFactory.getLog(LogFactory.java:45)
    at org.nutz.dao.impl.NutDao.<clinit>(NutDao.java:47)

What version of the product are you using? On what operating system?
SVN checkout最新版本,Window XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by wsc0...@gmail.com on 10 Dec 2009 at 1:06

GoogleCodeExporter commented 9 years ago
log4j是什么版本呢?

Original comment by wendal1985@gmail.com on 10 Dec 2009 at 5:50

GoogleCodeExporter commented 9 years ago
我发现, Log4J 1.2.2 是没有Level.TRACE的, Log4J 1.0 
1.1.x连Level这个类都没有.

Original comment by wendal1985@gmail.com on 10 Dec 2009 at 6:02

GoogleCodeExporter commented 9 years ago
找到了: 
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html#TRACE

按照其说法, 从Log4J 1.2.12开始,才有Level.TRACE.

Original comment by wendal1985@gmail.com on 10 Dec 2009 at 6:04

GoogleCodeExporter commented 9 years ago
我已经提交了更改.

Original comment by wendal1985@gmail.com on 10 Dec 2009 at 6:10

GoogleCodeExporter commented 9 years ago
fix in 1.a.24

Original comment by zozoh...@gmail.com on 10 Dec 2009 at 6:54

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 7 Jan 2010 at 11:46

GoogleCodeExporter commented 9 years ago
Verified in 1.a.26(r790)

Original comment by wendal1985@gmail.com on 7 Jan 2010 at 11:56

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 13 May 2010 at 10:54