log4j messages
1 posts in topic
Flat View  Flat View

Posted By:   zim_ske
Posted On:   Tuesday, May 23, 2006 04:31 AM

so, a complete newbie-must-master-in-two-days-or-else question.

is there any way of saving the messages that come out on
console to the string so, for instance, i need to get this
console output in separate strings.

0 [main] DEBUG test.Hello - Hello world.

10 [main] INFO test.Hello - What a beatiful day.

the goal is to send lines above, separately, to the
application which would then display that information in GUI.

Re: log4j messages

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, May 27, 2006 10:21 PM

you can use various different kinds of "Appenders", and log4j comes with ones that write to files, send email, etc. The "ConsoleAppender" is the one that writes out to the "console" (stdout/stderr).
About | Sitemap | Contact