SyslogAppenderFactory.h
Go to the documentation of this file.00001
00002
00003 #ifndef SYSLOGAPPENDERFACTORY_H_
00004 #define SYSLOGAPPENDERFACTORY_H_
00005
00006 #include <cmw-log/AppenderFactory.h>
00007 #include <cmw-log/Appender.h>
00008 #include <cmw-util/Properties.h>
00009 #include <fesa-core-gsi/Diagnostic/SyslogAppenderBuilder.h>
00010
00011 namespace fesaGSI
00012 {
00013
00014 class SyslogAppenderFactory : public CMW::Log::AbstractAppenderFactory
00015 {
00016 public:
00017 SyslogAppenderFactory();
00018 virtual ~SyslogAppenderFactory();
00019
00020 virtual CMW::Log::Appender* create(const CMW::Util::Properties & properties, const std::string & appenderName)
00021 {
00022 return SyslogAppenderBuilder(appenderName).setProperties(properties).build();
00023 }
00024 };
00025
00026 }
00027 #endif