At 08:17 12.04.2001 -0500, [EMAIL PROTECTED] wrote:


>1) The SocketAppender API explains "SocketAppenders do not use a layout.
>They ship a serialized
>LoggingEvent object to the server side." Does this mean I cannot configure
>the output format on the client side but I can on the server side.

Yes. 

>2) Also I wonder if the logging request gets flushed out  immediately? If
>not, then how soon the logging request got sent and should I use
>SocketAppender.close to help flush it, like:
>
>     Category  cat = Category.getInstance("com.xyz.FirstTry");
>
>     SocketAppender sa = new SocketAppender(host, port);
>     cat.addAppender(sa);
>
>     cat.setPriority(Priority.INFO);
>     cat.warn("You should see this WARN message.");
>     sa.close();

If you close "sa" then you will not be able to write to it again. Closing is important 
when leaving the application. Regards, Ceki


--
Ceki Gülcü     Web: http://qos.ch 
email: [EMAIL PROTECTED] or [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to