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 Avner BenHanoch <av...@kinor.com> on 2003/05/21 12:40:06 UTC

flush in Loggers

I switch to log4j from a previous [internal] logging system.
In our internal logging system I was able to call flush in order to force
flush of log messages in case the application got critical error.

Is this feature needed with log4j too?

if yes, how to do it?

thanks,
 Avner




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


Re: flush in Loggers

Posted by Avner BenHanoch <av...@kinor.com>.
Thanks Thomas.  This is great help for me.

(I am still checking your previous answer)

----- Original Message -----
From: "Thomas Muller" <tt...@online.no>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Wednesday, May 21, 2003 1:20 PM
Subject: RE: flush in Loggers


> Avner,
>
> Flushing for descendants of WriterAppender (FileAppender and the likes)
are
> controlled by the 'immediateFlush' property. The value of this property is
> 'true' by default, hence all log messages are immediately flushed
> automatically thus there are no need for a specific flush facility.
>
> Hope this helps.
>
> --
>
> Thomas
>
>
>
> | -----Original Message-----
> | From: Avner BenHanoch [mailto:avner@kinor.com]
> | Sent: 21 May 2003 11:40
> | To: 'Log4J Users List'
> | Subject: flush in Loggers
> |
> |
> | I switch to log4j from a previous [internal] logging system.
> | In our internal logging system I was able to call flush in order to
force
> | flush of log messages in case the application got critical error.
> |
> | Is this feature needed with log4j too?
> |
> | if yes, how to do it?
> |
> | thanks,
> |  Avner
> |
> |
> |
> |
> | ---------------------------------------------------------------------
> | To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> | For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> |
> |
>
>
>
> *************************************************************************
> Copyright ERA Technology Ltd. 2003. (www.era.co.uk). All rights reserved.
> The information supplied in this Commercial Communication should be
treated
> in confidence.
> No liability whatsoever is accepted for any loss or damage
> suffered as a result of accessing this message or any attachments.
>
> ________________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> ________________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>


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


RE: flush in Loggers

Posted by Thomas Muller <tt...@online.no>.
Avner,

Flushing for descendants of WriterAppender (FileAppender and the likes) are
controlled by the 'immediateFlush' property. The value of this property is
'true' by default, hence all log messages are immediately flushed
automatically thus there are no need for a specific flush facility.

Hope this helps.

--

Thomas



| -----Original Message-----
| From: Avner BenHanoch [mailto:avner@kinor.com]
| Sent: 21 May 2003 11:40
| To: 'Log4J Users List'
| Subject: flush in Loggers
|
|
| I switch to log4j from a previous [internal] logging system.
| In our internal logging system I was able to call flush in order to force
| flush of log messages in case the application got critical error.
|
| Is this feature needed with log4j too?
|
| if yes, how to do it?
|
| thanks,
|  Avner
|
|
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
| For additional commands, e-mail: log4j-user-help@jakarta.apache.org
|
|



*************************************************************************
Copyright ERA Technology Ltd. 2003. (www.era.co.uk). All rights reserved. 
The information supplied in this Commercial Communication should be treated
in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

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