LogLevel.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00026 //----------------------------------------------------------------------
00027 #ifndef ICL_CORE_LOGGING_LOG_LEVEL_H_INCLUDED
00028 #define ICL_CORE_LOGGING_LOG_LEVEL_H_INCLUDED
00029 
00030 #include <icl_core/BaseTypes.h>
00031 
00032 #include "icl_core_logging/ImportExport.h"
00033 
00034 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00035 # include "icl_core/Deprecate.h"
00036 #endif
00037 
00038 namespace icl_core {
00039 namespace logging {
00040 
00041 extern ICL_CORE_LOGGING_IMPORT_EXPORT const char *log_level_descriptions[];
00042 
00049 enum LogLevel
00050 {
00051   eLL_TRACE,
00052   eLL_DEBUG,
00053   eLL_INFO,
00054   eLL_WARNING,
00055   eLL_ERROR,
00056   eLL_MUTE
00057 };
00058 
00060 const LogLevel cDEFAULT_LOG_LEVEL = eLL_INFO;
00061 
00068 ICL_CORE_LOGGING_IMPORT_EXPORT const char *logLevelDescription(LogLevel log_level);
00069 
00080 ICL_CORE_LOGGING_IMPORT_EXPORT bool stringToLogLevel(const icl_core::String& log_level_text,
00081                                                      LogLevel& log_level);
00082 
00084 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
00085 
00093 ICL_CORE_LOGGING_IMPORT_EXPORT ICL_CORE_VC_DEPRECATE_STYLE
00094 const char *LogLevelDescription(LogLevel log_level) ICL_CORE_GCC_DEPRECATE_STYLE;
00095 
00107 ICL_CORE_LOGGING_IMPORT_EXPORT ICL_CORE_VC_DEPRECATE_STYLE
00108 bool StringToLogLevel(const icl_core::String& log_level_text,
00109                       LogLevel& log_level) ICL_CORE_GCC_DEPRECATE_STYLE;
00110 
00111 #endif
00112 
00113 
00114 }
00115 }
00116 
00117 #endif


fzi_icl_core
Author(s):
autogenerated on Thu Jun 6 2019 20:22:24