You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by UH...@de.ibm.com on 2001/01/02 10:46:50 UTC

Some questions


Hello,

happy new year to you all !!!

Some time ago I found your logging tool on the alphaworks homepage and I
like it very much.
I have following questions to the tool:

1) I'm using two appendars. On the display it want to log very important
messages and more detailed information I want to log into a file. Is it
possible to specifiy different severity levels for the appendars ?

2) In the project I'm using the logging tool I'm communicating with a
Hardware device and I have to log very much data bytes. Is it possible to
log data bytes in such a format:

  3131 3131 3131 3131 3131 3131 3131 3131  3232 3232 3232 3232 3232 3232
3232 3232  1111111111111112222222222222222
  3333 3333 3333 3333 3333 3333 3333 3333
333333333333333


Thanks in advance for your support,
Uwe Haller.

IBM Entwicklung GmbH
Dept. 3174, Solutions & Services
Schönaicher Straße 220
71032 Böblingen

Phone extern: (0 70 31) 16-4724,
              intern:                 902-4724,
              fax:                             -3335
E-mail ID:   uhaller@de.ibm.com




Re: Some questions

Posted by Ceki Gulcu <cg...@urbanet.ch>.
At 10:46 02.01.2001 +0100, UHALLER@de.ibm.com wrote:

>1) I'm using two appendars. On the display it want to log very important
>messages and more detailed information I want to log into a file. Is it
>possible to specifiy different severity levels for the appendars ?

Hello Uwe,

All appenders extending the AppenderSkeleton class support thersholds. Have 
a look at the Threshold variable in AppenderSkeleton.


>2) In the project I'm using the logging tool I'm communicating with a
>Hardware device and I have to log very much data bytes. Is it possible to
>log data bytes in such a format:
>
>   3131 3131 3131 3131 3131 3131 3131 3131  3232 3232 3232 3232 3232 3232
>3232 3232  1111111111111112222222222222222
>   3333 3333 3333 3333 3333 3333 3333 3333
>333333333333333

What format is that? In log4j version 1.0 to be released shortly, it will 
be possible to associate a renderer with a specific object type. Cheers, Ceki