The 1.3 alpha version of SocketHubAppender provides this capability. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201
Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thu 2/9/2006 5:50 PM To: Log4J Users List Subject: Re: Keeping debug-logs in error case I don't know if log4j supports this, but in log4net its possible to configure a BufferingForwardingAppender to record log messages at a certain threshold (ERROR for example). When a log entry of ERROR is received, the preceeding 512 (user settable via the bufferSize property) log messages of all levels (DEBUG, INFO, WARN) are written to the underlying appender. I think there's another thread with sample code in addition to this one: http://tinyurl.com/cx64y http://www.mail-archive.com/log4net-user%40logging.apache.org/msg02212.html Does log4j support something similiar? --- James Stauffer <[EMAIL PROTECTED]> wrote: > How long would you keep debug statements waiting for an error to > happen? Would you want all debug statements or just for specific > loggers? > > On 2/8/06, Liz <[EMAIL PROTECTED]> wrote: > > Spranger, Steffen <Steffen.Spranger <at> gft-systems.de> writes: > > > > > > > > Hallo, > > > > I log communication to an external system with e.g. > logger.debug(...). > > In a catch-block I log errors by logger.error(...). > > > > What I want is, not to keep all the debug-messages in good case, > but = > > keeping them in an error-case. > > > > I'm wondering if log4j can be configured (or our log statements = > > organized) to do so? > > And if it does, how? > > > > Best regards > > Steffen Spranger > > > > > > > > Hola, segura estoy de que no puedo ayudar a resolver tu problema, > pero te mando > > un saludo muy grande, deseando que estes muy bien y que pronto > alguien te ayude. > > > > Un beso con mucho cari�o, Liz > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > James Stauffer > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
