#include <zypp-core/base/Logger.h>
#include <cstring>
#include <iosfwd>
#include <string>
Go to the source code of this file.
|
#define | TRACE ::zypp::debug::TraceLeave _TraceLeave( __FILE__, __FUNCTION__, __LINE__ ) |
|
#define | OSD ::zypp::debug::Osd(L_USR("OSD")) |
|
#define | ZYPP_BASE_LOGGER_LOGGROUP "DEFINE_LOGGROUP" |
|
#define | XXX L_XXX( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | DBG L_DBG( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | MIL L_MIL( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | WAR L_WAR( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | ERR L_ERR( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | SEC L_SEC( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | INT L_INT( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | USR L_USR( ZYPP_BASE_LOGGER_LOGGROUP ) |
|
#define | L_XXX(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_XXX ) |
|
#define | L_DBG(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP"++", zypp::base::logger::E_MIL ) |
|
#define | L_MIL(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_MIL ) |
|
#define | L_WAR(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_WAR ) |
|
#define | L_ERR(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_ERR ) |
|
#define | L_SEC(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_SEC ) |
|
#define | L_INT(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_INT ) |
|
#define | L_USR(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_USR ) |
|
#define | L_ENV_CONSTR_DEFINE_FUNC(ENV) |
|
#define | L_ENV_CONSTR_FWD_DECLARE_FUNC(ENV) namespace zypp::log { bool has_env_constr_##ENV (); const char *empty_or_group_if_##ENV ( const char *group ); } |
|
#define | L_ENV_CONSTR(ENV, GROUP, LEVEL) ZYPP_BASE_LOGGER_LOG( zypp::log::empty_or_group_if_##ENV( GROUP ), LEVEL ) |
|
#define | L_BASEFILE ( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ ) |
|
#define | ZYPP_BASE_LOGGER_LOG(GROUP, LEVEL) zypp::base::logger::getStream( GROUP, LEVEL, L_BASEFILE, __FUNCTION__, __LINE__ ) |
| Actual call to getStream.
|
|
◆ TRACE
◆ OSD
◆ ZYPP_BASE_LOGGER_LOGGROUP
#define ZYPP_BASE_LOGGER_LOGGROUP "DEFINE_LOGGROUP" |
◆ XXX
◆ DBG
◆ MIL
◆ WAR
◆ ERR
◆ SEC
◆ INT
◆ USR
◆ L_XXX
◆ L_DBG
◆ L_MIL
◆ L_WAR
◆ L_ERR
◆ L_SEC
◆ L_INT
◆ L_USR
◆ L_ENV_CONSTR_DEFINE_FUNC
#define L_ENV_CONSTR_DEFINE_FUNC |
( |
|
ENV | ) |
|
Value:
bool has_env_constr_##ENV () \
{ \
static bool has_##ENV = (::getenv(#ENV) != NULL); \
return has_##ENV; \
} \
const char *empty_or_group_if_##ENV ( const char *group ) \
{ \
return has_env_constr_##ENV() ? group : nullptr; \
} \
}
Definition at line 113 of file Logger.h.
◆ L_ENV_CONSTR_FWD_DECLARE_FUNC
#define L_ENV_CONSTR_FWD_DECLARE_FUNC |
( |
|
ENV | ) |
namespace zypp::log { bool has_env_constr_##ENV (); const char *empty_or_group_if_##ENV ( const char *group ); } |
◆ L_ENV_CONSTR
#define L_ENV_CONSTR |
( |
|
ENV, |
|
|
|
GROUP, |
|
|
|
LEVEL |
|
) |
| ZYPP_BASE_LOGGER_LOG( zypp::log::empty_or_group_if_##ENV( GROUP ), LEVEL ) |
◆ L_BASEFILE
#define L_BASEFILE ( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ ) |
◆ ZYPP_BASE_LOGGER_LOG
Actual call to getStream.
Definition at line 132 of file Logger.h.