You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Pavel Muhataev <Pa...@moscow.vestedev.com> on 2001/07/02 16:09:14 UTC

Log4j improvement

Hi all

I'd like to suggest three features to log4j project:
1) Automatically category determining by package, class and method name
2) Capability of configuration ResourceBundle in configuration file
3) Object dumping capability.

Explanations:
1) Log4j have capability of automatically configuration loading at run-time.
But we need to get category object before logging. Adding capability of
automatically category determining would make log4j more easily to use.
There must be some universal class with static methods for logging. (debug,
info, etc.) When calling this methods package, class and method name must be
determined (may be by using Throwable.printStackTrace).

2) There are a great capability of using ResourceBundles. But it can't be
configured by configure files. I think, such capability must be added

3) I think, it would be very useful to add capability of printing some Java
object's dump.


Here is source code of program :
http://pavlinchik.chat.ru/Java/log4j/Log.java


Paul Mykhataew, ICQ # 33733798

begin 600 winmail.dat
M>)\^(@\.`0:0"``$```````!``$``0>0!@`(````XP0```````#G``$(@`<`
M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````T0<'``(`
M$@`)``X``0`+`0$@@`,`#@```-$'!P`"`!(`"0`.``$`"P$!"8`!`"$````T
M140W-#8Y.$-!-D5$-3$Q.$8V-#`P-C`Y-S=",D(X1``P!P$$@`$`$@```$QO
M9S1J(&EM<')O=F5M96YT`)8&`0V`!``"`````@`"``$#D`8`T`<``"P````+
M``(``0```$``.0!P]_.2``/!`1X`<``!````$@```$QO9S1J(&EM<')O=F5M
M96YT`````@%Q``$````6`````<$#`&XKF$;7:V[*$=6/9`!@EWLKC0``'@`Q
M0`$````'````4$%614Q-```#`!I``````!X`,$`!````!P```%!!5D5,30``
M`P`90``````"`0D0`0```&T#``!I`P``<`4``$Q:1G5C=>DL`P`*`')C<&<Q
M,C47`%`!!PM@;@X0,#0Y3P'W`J0#XP(`8V@*P'/P970P(`<3`H,`4`-4MQ#)
M!VT"@S(07@'0-```.BH"X6$'@!%F!Q,@0U194@*`?0J!=@B0=])K"X!D-`Q@
M8P!0"P,)#P0S,P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#>/X)1```#``E9`P````,`!(`((`8``````,````````!&`````%*%```G
M:@$`'@`%@`@@!@``````P````````$8`````5(4```$````$````.2XP`!X`
M"H`((`8``````,````````!&`````#:%```!`````0`````````>``N`""`&
M``````#`````````1@`````WA0```0````$`````````'@`,@`@@!@``````
MP````````$8`````.(4```$````!``````````L``H`((`8``````,``````
M``!&``````.%`````````P`#@`@@!@``````P````````$8`````$(4`````
M```+``^`""`&``````#`````````1@`````&A0````````,`!H`((`8`````
M`,````````!&``````&%````````"P`'@`@@!@``````P````````$8`````
M#H4````````#``B`""`&``````#`````````1@`````1A0````````,`"8`(
M(`8``````,````````!&`````!B%`````````P#Q/PD$```#`/T_XP0```,`
M)@```````P`V```````#`(`0_____P(!1P`!````+@```&,]4E4[83T@.W`]
M5D1).VP]15A#2$%.1T4M,#$P-S`R,30P.3$T6BTW-C0V-@```!X`.$`!````
M!P```%!!5D5,30``'@`Y0`$````'````4$%614Q-``!```<P8K+QD@`#P0%`
M``@P,L4$DP`#P0$>`#T``0````$`````````'@`=#@$````2````3&]G-&H@
M:6UP<F]V96UE;G0````>`#40`0```$`````\0C,P.$(V,C8S,$4U1#,Q,4%$
M03,P,#`P-C)!,3=&0D(P,C`S049"-$!E>&-H86YG92YV97-T+FUS:RYR=3X`
M"P`I```````+`",```````,`!A!F6]9B`P`'$%,#```#`!`0``````,`$1``
M````'@`($`$```!E````2$E!3$Q)1$Q)2T543U-51T=%4U142%)%149%0515
M4D535$],3T<T2E!23TI%0U0Z,2E!551/34%424-!3$Q90T%414=/4EE$151%
M4DU)3DE.1T)94$%#2T%'12Q#3$%34T%.1``````"`7\``0```$`````\0C,P
M.$(V,C8S,$4U1#,Q,4%$03,P,#`P-C)!,3=&0D(P,C`S049"-$!E>&-H86YG
192YV97-T+FUS:RYR=3X`#[H=
`
end

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org