[Seasar-user:2809] seasar で使用している Logger ( log4j )をアプリケーションで使用する方法について
池尾 豊広
dotcomikeo
2005年 11月 10日 (木) 23:41:02 JST
$B$O$8$a$FEj9F$5$;$F$$$?$@$-$^$9!#(B
$BCS$H?=$7$^$9!#(B
$B8=:_%"%W%j%1!<%7%g%s$K%"%Y%s%I7O$N%(%i!<$[E-MAIL ADDRESS DELETED]$8$?>l9g$K%m%0$r0J2<$NMWNN$G=PNO$7$h$&$H9M$($F$*$j$^$9!#(B
(1) $B=[E-MAIL ADDRESS DELETED]!'-!(B $B%m%0%U%!%$%k(B $B-"(B NT$B%$%Y%s%H%m%0(B
(2) $B;HMQ$9$k%m%0=PNO%/%i%9!'(B org.seasar.framework.log.Logger$B!J(BSeasar$BFb$N%/%i%9!K(B
(3) log4j$[E-MAIL ADDRESS DELETED]%U%!%$%k!'(Bseasar$B$,I8=`$G;HMQ$7$F$$$k(Blog4j.properties
Logger$B$N;EMM$r9MN8$7!"0J2<$N$h$&$J%3!<%I$r%"%W%j%1!<%7%g%s$KKd$a9~$_$^$7$?!#(B
------------------------------------------------------------------------------------------------------------------------------
private static Logger logger_ = Logger.getLogger($B!_!_!_(B.class); $B"M(B $B%/%i%9$[E-MAIL ADDRESS DELETED],$[E-MAIL ADDRESS DELETED]@(B
logger_.log("FLOG0001",null); $B"M(B $B%m%0$r=PNO$9$k>l=j$K5-=R(B
------------------------------------------------------------------------------------------------------------------------------
$B>e5-(B"FLOG0001"$B$O!V(BLOGMessages.properties$B!W$H$$$&:[E-MAIL ADDRESS DELETED]$7$?%a%C%;!<%8Dj5A%U%!%$%kFb$K(B
"FLOG0001=hogehogehoge"$B$H5-=R$7$F$$$^$9!#(B
log4j.properties$BFb$K(B"log4j.appender.LOGFILE.layout.ConversionPattern=%d %-5p - %m%n"$B$H$$$&5-=R$r$7$F$$$k$3$H$+$i!"(B
$B=PNO%a%C%;!<%8$K(B"hogehoge"$B$,=PNO$5$l$k$O$:$J$N$G$9$,=PNO$5$l$^$;$s!#(B
$B%"%W%j%1!<%7%g%s$+$i(BSeasar$BFb$N%m%0%/%i%9!J(BLogger$B!K$r;HMQ$9$k$3$H$O$G$-$J$$$N$G$7$g$&$+!)(B
$B3+H/4D6-$O0J2<$NDL$j$G$9!#(B
$B"#(Bseasar$B%P!<%8%g%s!'(B2.2.10
$B"#(BJava$B%3%s%F%J!'(BTomcat4.1
$B"#(BDB$B!'(BSQL Server2000
$B"#(Blog4j$B%P!<%8%g%s!'(B1.2.8
$B$4B8CN$NJ}$,$$$i$C$7$c$$$^$7$?$i$465<x4j$$$^$9!#(B
$B$h$m$7$/$*4j$$$7$^$9!#(B
-$B0J>e(B-
---------------------------------
Yahoo! Mail - supported by 10million people
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$,=|5n$5$l$^$7$?(B.
URL: http://lists.sourceforge.jp/mailman/archives/seasar-user/attachments/20051110/9248b72c/attachment.htm
Seasar-user メーリングリストの案内