logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning <tschoen...@am-soft.de>
Subject Re: Loglines before a crash
Date Sat, 05 Apr 2014 14:29:19 GMT
Guten Tag Oscar Pernas,
am Freitag, 4. April 2014 um 14:45 schrieben Sie:

> I don't know, but I think that log4cxx enqueue messages too,
> because being synchronous will affect the performance.

This depends on the appenders used, by default e.g. FileAppenders do
not buffer I/O. And yes, that will impact performance on heavy
tracing, but you don't need to trace at all, can easily use different
loggers with different log levels to reduce the amount of data written
and even detect the current log level in any piece of code to decide
if you want to log or not. And you can decide to use buffered I/O
easily using the configuration IMHO.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


Mime
View raw message