logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Stauffer <stauffer.ja...@gmail.com>
Subject Re: use log4j for error transmission?
Date Thu, 26 May 2005 17:43:15 GMT
You could just log the message normally and use an appender to send it
to your server (SocketAppender maybe).  That wouldn't bastardize log4j
at all.

On 5/24/05, Jeff Drew <jeff@tradingmetrics.com> wrote:
> I'd appreciate thoughts on a design question I'm considering.
> I would like to send some error messages from my analysis server to another software
module that basically creates the output data.  These modules communicate via an ObjectOutputStream.
 These error messages will have most of the same information as the logging message.  The
presentation will be similar to Chainsaw.
> These basic similarities made me consider using log4j messages as the error message objects.
 I would create a log4j message within my analysis server, then transmit it to the output
module.  The output module might be able to take advantage of Chainsaw.   I'm familiar with
writing log4j messages to Loggers.
> Can I instantiate a log message? something like:    Log4jMessage message = new Log4jMessage(priority,
text, time);
> Is this idea a poor bastardization of log4j or a good idea?
> Thanks
> Jeff

James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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

View raw message