Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * logger_employer.h - Fawkes logger employer 00004 * 00005 * Created: Wed Feb 11 22:26:27 2009 00006 * Copyright 2006-2011 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __LOGGING_LOGGER_EMPLOYER_H_ 00025 #define __LOGGING_LOGGER_EMPLOYER_H_ 00026 00027 namespace fawkes { 00028 00029 class Logger; 00030 00031 /** Logger employer 00032 * The LoggerEmployer shall pipe all log messages of the system to 00033 * added loggers. 00034 * @author Tim Niemueller 00035 */ 00036 class LoggerEmployer 00037 { 00038 public: 00039 /** Virtual empty destructor. */ 00040 virtual ~LoggerEmployer() {} 00041 00042 /** Add a new logger. 00043 * An exception should be thrown if anything prevents this from succeeding. 00044 * @param logger logger to add 00045 */ 00046 virtual void add_logger(Logger *logger) = 0; 00047 00048 /** Remove a logger. 00049 * An exception should be thrown if anything prevents this from succeeding. 00050 * @param logger logger to remove 00051 */ 00052 virtual void remove_logger(Logger *logger) = 0; 00053 }; 00054 00055 } // end of namespace fawkes 00056 00057 #endif