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: simple stringstream appender
Date Mon, 16 Aug 2010 11:34:13 GMT
Guten Tag Andrej van der Zee,
am Montag, 16. August 2010 um 09:49 schrieben Sie:

> I need an appender that writes to a stringstream. I want to be able to
> access the complete log after my CGI application is finished. How can
> I do this?

> I guess I could use a FileAppender and write to a temporary file and
> after my CGI application finishes read the log from the file. But, I
> prefer a stringstream solution.

Doesn't depends the possibility to use a string stream or file on who
wants to read the log from your CGI application? If it's another
application, how does it get the string stream? Besides that, how
large can your log grow? What are your trying to do with the written
log in general? I would prefer a file from the first thoughts.

Mit freundlichen Grüßen,

Thorsten Schöning

Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoening@am-soft.de
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

View raw message