这是官方FAQ中的解释:
) ^7 x' \& a2 ESeveral people have reported errors when trying to start a Repast Simphony model such as
# J2 B0 ?7 S1 R Y( S- {5 N9 Y% u+ llog4j:WARN No appenders could be found for logger
* D. X. P" D% @) ]0 v5 D(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
3 z0 F* a; T2 E7 P$ r: i" Xlog4j:WARN Please initialize the log4j system properly.* C4 k) _1 E9 d! \
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually1 \ L8 A& ] t: q2 t% D
related to logging configuration errors, and more likely it is related to problems in the model.score file
8 A8 m6 H" K1 R( s" M6 _like incorrect paths, or missing agent class files.
- ~& o, W% s; f: ?! vWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
. B& N. R4 F4 u+ t2 H) j$ x8 jfind more information from the Repast runtime error log. The error log is available when the icon in
4 O/ X" x J( E; V" }the lower right corner of the Repast runtime is flashing.
% M5 y4 f- Z( T+ o$ o& D( |
6 v7 A$ U. [' c大意就是这个错误实际上同日志(logging)设置无关,
0 q/ I8 [" ]3 x5 G0 p1 t8 L! {* v相关问题的解决应该在model.score中解决,$ o) w1 K+ f( k$ I" c) I: }" g# R
例如不正确的路径设置、缺少agent类文件呀,诸如此类。' L9 }' q: R8 D! ?
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。8 W9 O, ?& [/ v( w
要获得更多错误相关信息可参考Repast实时错误日志。
2 _7 }2 m, ~, d) a' \7 H该错误日志可在Repast运行环境活动时在窗口的右下方看到。4 j/ `0 ~/ ?! N( x* M% V. u: n3 l
) Y5 L: ?. W! G$ H: u3 M[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |