Logger.h File Reference

#include <iosfwd>
#include <cstring>

Include dependency graph for Logger.h:

Go to the source code of this file.


Namespaces

namespace  zypp
 Easy-to use interface to the ZYPP dependency resolver.
namespace  zypp::base
namespace  zypp::base::logger

Defines

#define ZYPP_BASE_LOGGER_LOGGROUP   "DEFINE_LOGGROUP"
 Default log group if undefined.
#define XXX   _XXX( ZYPP_BASE_LOGGER_LOGGROUP )
#define DBG   _DBG( ZYPP_BASE_LOGGER_LOGGROUP )
#define MIL   _MIL( ZYPP_BASE_LOGGER_LOGGROUP )
#define WAR   _WAR( ZYPP_BASE_LOGGER_LOGGROUP )
#define ERR   _ERR( ZYPP_BASE_LOGGER_LOGGROUP )
#define SEC   _SEC( ZYPP_BASE_LOGGER_LOGGROUP )
#define INT   _INT( ZYPP_BASE_LOGGER_LOGGROUP )
#define USR   _USR( ZYPP_BASE_LOGGER_LOGGROUP )
#define _XXX(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_XXX )
#define _DBG(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP"++", zypp::base::logger::E_MIL )
#define _MIL(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_MIL )
#define _WAR(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_WAR )
#define _ERR(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_ERR )
#define _SEC(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_SEC )
#define _INT(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_INT )
#define _USR(GROUP)   ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_USR )
#define _BASEFILE   ( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ )
#define ZYPP_BASE_LOGGER_LOG(GROUP, LEVEL)   zypp::base::logger::getStream( GROUP, LEVEL, _BASEFILE, __FUNCTION__, __LINE__ )
 Actual call to getStream.

Enumerations

enum  zypp::base::logger::LogLevel {
  zypp::base::logger::E_XXX = 999, zypp::base::logger::E_DBG = 0, zypp::base::logger::E_MIL, zypp::base::logger::E_WAR,
  zypp::base::logger::E_ERR, zypp::base::logger::E_SEC, zypp::base::logger::E_INT, zypp::base::logger::E_USR
}
 Definition of log levels. More...

Functions

std::ostream & zypp::base::logger::getStream (const char *group_r, LogLevel level_r, const char *file_r, const char *func_r, const int line_r)
 Return a log stream to write on.
bool zypp::base::logger::isExcessive ()


Detailed Description

Definition in file Logger.h.


doxygen