OSDN Git Service

Merge branch 'packet_edit' into autotools-fix(releng)
[ultramonkey-l7/sslproxy.git] / logger / logger.h
index 0586531..1ea56fc 100644 (file)
@@ -1,82 +1,82 @@
-/*\r
- * @file  logger.h\r
- * @brief logger module creation class.\r
- *\r
- * L7VSD: Linux Virtual Server for Layer7 Load Balancing\r
- * Copyright (C) 2008  NTT COMWARE Corporation.\r
- *\r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU Lesser General Public\r
- * License as published by the Free Software Foundation; either\r
- * version 2.1 of the License, or (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
- * Lesser General Public License for more details.\r
- *      \r
- * You should have received a copy of the GNU Lesser General Public\r
- * License along with this library; if not, write to the Free Software\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\r
- * 02110-1301 USA\r
- *\r
- **********************************************************************/\r
-\r
-#ifndef __LOGGER_H__\r
-#define __LOGGER_H__\r
-\r
-#include <string>\r
-#include <logger_enum.h>\r
-\r
-#define BUF_LEN (4096)\r
-#define DEBUG_STR_LEN (4096)\r
-\r
-namespace l7vs\r
-{\r
-       /*!\r
-        *  Logger creation class.\r
-        *  this class create Logger Inmlement class and mediate function.\r
-        */\r
-       class Logger\r
-       {\r
-       public:\r
-               //! default constructor creates implement class.\r
-               Logger();\r
-               //! destructor.\r
-               ~Logger();\r
-               /*!\r
-                * returns single instance.\r
-                *\r
-                * @param   void\r
-                * @return  instance\r
-                */             \r
-               static Logger& getInstance() {\r
-                       return instance;\r
-               }\r
-               //! load Configuration.\r
-               void loadConf();\r
-               //! retrieve category's log level.\r
-               LOG_LEVEL_TAG getLogLevel(LOG_CATEGORY_TAG cat);\r
-               //! set category's log level.\r
-               bool setLogLevel(LOG_CATEGORY_TAG cat, LOG_LEVEL_TAG level);\r
-               //! output fatal log.\r
-               void putLogFatal(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);\r
-               //! output error log.\r
-               void putLogError(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);\r
-               //! output warn log.\r
-               void putLogWarn(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);\r
-               //! output info log.\r
-               void putLogInfo(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);\r
-               //! output debug log.\r
-               void putLogDebug(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);\r
-\r
-       protected:\r
-               /*!\r
-                * static instance initialize before main. \r
-                * instance will defined in main program.\r
-                */\r
-               static Logger instance;\r
-       };\r
-}      //namespace l7vs\r
-\r
-#endif //__LOGGER_H__\r
+/*
+ * @file  logger.h
+ * @brief logger module creation class.
+ *
+ * L7VSD: Linux Virtual Server for Layer7 Load Balancing
+ * Copyright (C) 2008  NTT COMWARE Corporation.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *      
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ **********************************************************************/
+
+#ifndef __LOGGER_H__
+#define __LOGGER_H__
+
+#include <string>
+#include <logger_enum.h>
+
+#define BUF_LEN (4096)
+#define DEBUG_STR_LEN (4096)
+
+namespace l7vs
+{
+       /*!
+        *  Logger creation class.
+        *  this class create Logger Inmlement class and mediate function.
+        */
+       class Logger
+       {
+       public:
+               //! default constructor creates implement class.
+               Logger();
+               //! destructor.
+               ~Logger();
+               /*!
+                * returns single instance.
+                *
+                * @param   void
+                * @return  instance
+                */             
+               static Logger& getInstance() {
+                       return instance;
+               }
+               //! load Configuration.
+               void loadConf();
+               //! retrieve category's log level.
+               LOG_LEVEL_TAG getLogLevel(LOG_CATEGORY_TAG cat);
+               //! set category's log level.
+               bool setLogLevel(LOG_CATEGORY_TAG cat, LOG_LEVEL_TAG level);
+               //! output fatal log.
+               void putLogFatal(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);
+               //! output error log.
+               void putLogError(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);
+               //! output warn log.
+               void putLogWarn(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);
+               //! output info log.
+               void putLogInfo(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);
+               //! output debug log.
+               void putLogDebug(LOG_CATEGORY_TAG cat, const unsigned int message_id, const std::string& message, const char *file, int line);
+
+       protected:
+               /*!
+                * static instance initialize before main. 
+                * instance will defined in main program.
+                */
+               static Logger instance;
+       };
+}      //namespace l7vs
+
+#endif //__LOGGER_H__