这是官方FAQ中的解释:
6 s3 K' H7 P% ~Several people have reported errors when trying to start a Repast Simphony model such as
4 `0 d$ D7 r/ X3 g# d3 Q! B# Zlog4j:WARN No appenders could be found for logger
2 m9 [ i& Z- z+ j4 C(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
- _: X+ H4 I0 I3 Mlog4j:WARN Please initialize the log4j system properly.
J* w( y9 ^, @with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
L* a' T' ~; ]$ u( frelated to logging configuration errors, and more likely it is related to problems in the model.score file, L) K$ Y0 O2 X$ k1 R! W$ z; f
like incorrect paths, or missing agent class files.% n4 k: T$ b1 E) i6 `# y
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
$ R% e+ Q, h2 u( b' S) E4 X: C7 Y! Mfind more information from the Repast runtime error log. The error log is available when the icon in+ t. f/ t; s: Z3 k5 b$ W3 o: q& I
the lower right corner of the Repast runtime is flashing.( [6 o, s" |3 I u0 Y/ k" Y' ?
0 y- V" M) L9 A4 s9 w大意就是这个错误实际上同日志(logging)设置无关,
3 d% @2 o J4 Z; N) {相关问题的解决应该在model.score中解决,( V* S7 x9 T4 k0 l
例如不正确的路径设置、缺少agent类文件呀,诸如此类。! P. o; |& W# `3 l2 Q' Y
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
0 T _8 S8 m- b. o2 Y; r+ U要获得更多错误相关信息可参考Repast实时错误日志。2 l) _9 Y; Y9 M' C: }1 G
该错误日志可在Repast运行环境活动时在窗口的右下方看到。$ m) W0 j5 J: _2 j
8 C. ?. Q! o* C, F) a
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |