From: Václav Z. <v.h...@sh...> - 2011-09-18 22:01:05
|
Maddie Leary wrote, On 16.9.2011 22:34: > Hello, > > I've just started working with log4cplus today, it's surprisingly easy to > use, however, I wish to use it to log to syslog... > > I've been looking at this web-page which has a > SyslogAppender: http://log4cplus.sourceforge.net/docs/html/classlog4cplus_1_1PropertyConfigurator.html#a21e8e6b1440cc7a8a47b8fd14c54b239 > > When I input log4cplus.appender.syslog1=log4cplus::SyslogAppender into my > log4cplus.properties file and compile I get no errors. But when I run the > program I get these errors: > log4cplus:ERROR PropertyConfigurator::configureAppenders()- Cannot find > AppenderFactory: log4cplus::SyslogAppender > log4cplus:ERROR PropertyConfigurator::configureLogger()- Invalid appender: > syslog1 (syslog1 is the name of my appender here) > > Is that code valid? Is there still a SyslogAppender available? If so, how can > I go about creating it properly? It should be available. What version of log4cplus are you using? > > Thank you for your time and assistance, > Maddie -- VZ |