Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

loggerfactory.h

Go to the documentation of this file.
00001 // Module:  Log4CPLUS
00002 // File:    loggerfactory.h
00003 // Created: 6/2001
00004 // Author:  Tad E. Smith
00005 //
00006 //
00007 // Copyright (C) Tad E. Smith  All rights reserved.
00008 //
00009 // This software is published under the terms of the Apache Software
00010 // License version 1.1, a copy of which has been included with this
00011 // distribution in the LICENSE.APL file.
00012 //
00013 
00016 #ifndef _LOG4CPLUS_SPI_LOGGER_FACTORY_HEADER
00017 #define _LOG4CPLUS_SPI_LOGGER_FACTORY_HEADER
00018 
00019 #include <log4cplus/config.h>
00020 #include <log4cplus/tstring.h>
00021 #include <log4cplus/helpers/pointer.h>
00022 
00023 
00024 namespace log4cplus {
00025     // Forward Declarations
00026     class Logger;
00027     class Hierarchy;
00028 
00029     namespace spi {
00034         class LOG4CPLUS_EXPORT LoggerFactory {
00035         public:
00039             virtual Logger makeNewLoggerInstance(const log4cplus::tstring& name,
00040                                                  Hierarchy& h) = 0; 
00041             virtual ~LoggerFactory(){}
00042         };
00043 
00044     } // end namespace spi
00045 } // end namespace log4cplus
00046 
00047 #endif // _LOG4CPLUS_SPI_LOGGER_FACTORY_HEADER
00048 

Generated on Mon Feb 9 09:10:30 2004 for log4cplus by doxygen 1.3.2