00001 // $Id: Levels.hh 1742 2010-11-04 14:51:56Z g0dil $ 00002 // 00003 // Copyright (C) 2007 00004 // Fraunhofer (FOKUS) 00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY 00006 // Stefan Bund <g0dil@berlios.de> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the 00020 // Free Software Foundation, Inc., 00021 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00026 #ifndef HH_SENF_Utils_Logger_Levels_ 00027 #define HH_SENF_Utils_Logger_Levels_ 1 00028 00029 // Custom includes 00030 00031 //#include "Levels.mpp" 00032 #include "Levels.ih" 00033 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00034 00035 namespace senf { 00036 namespace log { 00037 00076 //\{ 00077 00080 struct VERBOSE : public detail::LevelBase { static unsigned const value = 1; }; 00081 00084 struct NOTICE : public detail::LevelBase { static unsigned const value = 2; }; 00085 00088 struct MESSAGE : public detail::LevelBase { static unsigned const value = 3; }; 00089 00092 struct IMPORTANT : public detail::LevelBase { static unsigned const value = 4; }; 00093 00096 struct CRITICAL : public detail::LevelBase { static unsigned const value = 5; }; 00097 00100 struct FATAL : public detail::LevelBase { static unsigned const value = 6; }; 00101 00104 struct DISABLED : public detail::LevelBase { static unsigned const value = 7; }; 00105 00108 struct NONE : public detail::LevelBase { static unsigned const value = 0; }; 00109 00110 //\} 00111 00112 static char const * const LEVELNAMES[8] = { 00113 "NONE", "VERBOSE", "NOTICE", "MESSAGE", "IMPORTANT", "CRITICAL", "FATAL", "DISABLED" }; 00114 00115 }} 00116 00117 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00118 //#include "Levels.cci" 00119 //#include "Levels.ct" 00120 //#include "Levels.cti" 00121 #endif 00122 00123 00124 // Local Variables: 00125 // mode: c++ 00126 // fill-column: 100 00127 // comment-column: 40 00128 // c-file-style: "senf" 00129 // indent-tabs-mode: nil 00130 // ispell-local-dictionary: "american" 00131 // compile-command: "scons -u test" 00132 // End: