logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Fester <Andreas.Fes...@gmx.de>
Subject Re: Any good docs on creating an appender?
Date Thu, 15 Sep 2005 18:02:17 GMT
Ron Ohmer wrote:
> We have a couple of appenders to create, is there a FAQ or something on
> this, or do you suggest just going with the skeleton and using something
> like syslog appender as a guide?

I would take an existing appender, the syslog appender might be a good
choice. Basically you have to implement the abstract function

virtual void append(const spi::LoggingEventPtr& event, 
log4cxx::helpers::Pool& p) = 0;

from AppenderSkeleton to implement your specific logging functionality.

Regards,

	Andreas

-- 
Andreas Fester
mailto:andreas@littletux.net
WWW: http://www.littletux.net
ICQ: 326674288

Mime
View raw message