这是官方FAQ中的解释:
# E) f' s+ E# ^8 o$ lSeveral people have reported errors when trying to start a Repast Simphony model such as
! o# ]- ~& f& U' F, l4 k9 [log4j:WARN No appenders could be found for logger
! b! X0 I$ d% g0 ?4 r# l(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
1 H7 D. m k$ P& plog4j:WARN Please initialize the log4j system properly.; d+ T" u' V8 }
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually0 Y+ G6 d+ ?$ {0 i
related to logging configuration errors, and more likely it is related to problems in the model.score file
. t, ?3 a6 Q4 g7 N9 v8 m/ p. k0 xlike incorrect paths, or missing agent class files.
: t& M6 b8 o; c7 WWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually( v0 J, a) X$ ] k+ d* m# v( C
find more information from the Repast runtime error log. The error log is available when the icon in. k# ?$ n( \7 V( |# X/ b! S7 p
the lower right corner of the Repast runtime is flashing.- G% v: b' U8 `8 U: P
' j8 l; [" I o# l0 \: @* {/ w大意就是这个错误实际上同日志(logging)设置无关,, q4 Q/ ]5 l! ?, h2 F
相关问题的解决应该在model.score中解决,! }# v5 d% w; y/ T$ o
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
v2 L N; ~8 @' s* n) H [如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
( m& i, t4 F9 @3 f; x1 m) e3 h要获得更多错误相关信息可参考Repast实时错误日志。9 u! f$ `0 f6 F5 u+ l
该错误日志可在Repast运行环境活动时在窗口的右下方看到。
5 v9 R$ c4 D5 q w; R9 M7 G; W7 p( J7 i. K/ k9 ^8 j2 J
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |