这是官方FAQ中的解释:
/ G$ a. m5 `0 R( Q$ qSeveral people have reported errors when trying to start a Repast Simphony model such as
9 K2 F i( a: @log4j:WARN No appenders could be found for logger
/ o1 E0 ]5 O- X7 t, j4 }(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).# t, S/ W) R; x+ O- t4 ]' y* T
log4j:WARN Please initialize the log4j system properly./ N8 S* }' Y0 K/ F" x. H' n! E4 ~
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
" G& @; N- w: Erelated to logging configuration errors, and more likely it is related to problems in the model.score file
* U0 v9 P# L8 T& l2 tlike incorrect paths, or missing agent class files.2 j: \, }# V- |7 T8 n1 v/ _9 N
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
) o [, E$ l# d& Kfind more information from the Repast runtime error log. The error log is available when the icon in9 c. p6 d" Z3 }; m+ i2 }2 O+ J
the lower right corner of the Repast runtime is flashing.
3 p p. ]4 h! _) C) m9 w) p: ~; J1 A2 b& T# S6 [
大意就是这个错误实际上同日志(logging)设置无关,
o) A5 Q$ C4 @7 K+ ~# ?" Y相关问题的解决应该在model.score中解决,) o! m8 T, v$ |
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
% P1 O! z6 `8 |( X9 }0 }如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
7 t- r3 p% ^" x6 S5 H要获得更多错误相关信息可参考Repast实时错误日志。
$ ?$ O, e& R6 d8 {2 ?7 Y$ T6 H该错误日志可在Repast运行环境活动时在窗口的右下方看到。
7 e# P) z+ F# [# ]. }# {. t1 n8 _7 v1 @3 Z& Y
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |