00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : ILogger 00006 * Package : Zeus.ZeusBase.System.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef ILoggerHPP 00033 #define ILoggerHPP 00034 00035 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00036 #include <zeusbase/System/Interfaces/IString.hpp> 00037 #include <zeusbase/System/Interfaces/IPropertyAccess.hpp> 00038 00039 // {4496EA5C-BBE7-4dc1-9906-274BCB34D006} 00040 #define INTERFACE_ILogger TIID(0x4496ea5c, 0xbbe7, 0x4dc1, 0x99, 0x6, 0x27, 0x4b, 0xcb, 0x34, 0xd0, 0x6) 00041 00042 BEGIN_NAMESPACE_Zeus 00043 00044 /**************************************************************************/ 00047 /**************************************************************************/ 00048 class ILogger : public IZUnknown 00049 { 00050 HIDE_ASSIGNMENT_OPERATOR(ILogger) 00051 00052 public: 00053 00054 /**********************************************************************/ 00062 /**********************************************************************/ 00063 virtual Retval MQUALIFIER getLogger(const IString& rName, ILogger*& rpLogger)=0; 00064 00065 /**********************************************************************/ 00069 /**********************************************************************/ 00070 virtual void MQUALIFIER printDebug(const IString& rMessage)=0; 00071 00072 /**********************************************************************/ 00076 /**********************************************************************/ 00077 virtual void MQUALIFIER printError(const IString& rMessage)=0; 00078 00079 /**********************************************************************/ 00083 /**********************************************************************/ 00084 virtual void MQUALIFIER printFatal(const IString& rMessage)=0; 00085 00086 /**********************************************************************/ 00090 /**********************************************************************/ 00091 virtual void MQUALIFIER printInfo(const IString& rMessage)=0; 00092 00093 /**********************************************************************/ 00097 /**********************************************************************/ 00098 virtual void MQUALIFIER printWarn(const IString& rMessage)=0; 00099 00100 /**********************************************************************/ 00105 /**********************************************************************/ 00106 virtual bool MQUALIFIER isDebugEnabled()=0; 00107 00108 /**********************************************************************/ 00113 /**********************************************************************/ 00114 virtual bool MQUALIFIER isErrorEnabled()=0; 00115 00116 /**********************************************************************/ 00121 /**********************************************************************/ 00122 virtual bool MQUALIFIER isFatalEnabled()=0; 00123 00124 /**********************************************************************/ 00129 /**********************************************************************/ 00130 virtual bool MQUALIFIER isInfoEnabled()=0; 00131 00132 /**********************************************************************/ 00137 /**********************************************************************/ 00138 virtual bool MQUALIFIER isWarnEnabled()=0; 00139 00140 /**********************************************************************/ 00146 /**********************************************************************/ 00147 virtual Retval MQUALIFIER loadConfiguration(const IString& rFileName)=0; 00148 00149 /**********************************************************************/ 00155 /**********************************************************************/ 00156 virtual Retval MQUALIFIER loadProperties(IPropertyAccess& rProp)=0; 00157 00158 00159 }; 00160 00161 END_NAMESPACE_Zeus 00162 00163 #endif 00164