00001 /* Log interface. 00002 * 00003 * PegSoft log subsystem library (c) 2005 PegSoft 00004 * Contact us at pegsoft@pegsoft.net 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this software (the COPYING file); if not, write to the 00017 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 00018 * USA. 00019 * 00020 */ 00021 00027 #ifndef LOG_LOG_H 00028 #define LOG_LOG_H 00029 00030 /*************************************************************************/ 00031 00032 namespace xlog 00033 { 00034 00035 /*************************************************************************/ 00036 00037 class LogLevel; 00038 00039 /*************************************************************************/ 00040 00042 00050 class Log 00051 { 00052 public: 00054 virtual ~Log() { } 00055 00057 00061 virtual void log(LogLevel const &level, char const *message) = 0; 00062 }; 00063 00064 /*************************************************************************/ 00065 00066 } /* namespace xlog */ 00067 00068 /*************************************************************************/ 00069 00070 #endif /* LOG_LOG_H */