Log

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files
- Examples

Namespaces | Data Structures | Macros | Functions | Variables
Log
Eina C++ » Tools

## Namespaces
| efl::eina::log_level
| Types to represent each log level.

## Data Structures
struct | efl::eina::_domain_base< D >
| Base implementation for log domains. More...
struct | efl::eina::global_domain
struct | efl::eina::default_domain
struct | efl::eina::log_domain
| Class for creating log domains. More...

## Macros
#define | EINA_CXX_DOM_LOG(DOMAIN, LEVEL)
| Logs a message with level p LEVEL on the domain p DOMAIN. More...
#define | EINA_CXX_DOM_LOG_CRIT(DOMAIN) EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_CRITICAL)
| Logs a message with level c EINA_LOG_LEVEL_CRITICAL on the domain p DOMAIN. More...
#define | EINA_CXX_DOM_LOG_ERR(DOMAIN) EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_ERR)
| Logs a message with level c EINA_LOG_LEVEL_ERR on the domain p DOMAIN. More...
#define | EINA_CXX_DOM_LOG_INFO(DOMAIN) EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_INFO)
| Logs a message with level c EINA_LOG_LEVEL_INFO on the domain p DOMAIN. More...
#define | EINA_CXX_DOM_LOG_DBG(DOMAIN) EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_DBG)
| Logs a message with level c EINA_LOG_LEVEL_DBG on the domain p DOMAIN. More...
#define | EINA_CXX_DOM_LOG_WARN(DOMAIN) EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_WARN)
| Logs a message with level c EINA_LOG_LEVEL_WARN on the domain p DOMAIN. More...
#define | EINA_CXX_LOG(LEVEL) EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, LEVEL)
| Logs a message with level p LEVEL on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...
#define | EINA_CXX_LOG_CRIT() EINA_CXX_LOG(EINA_LOG_LEVEL_CRITICAL)
| Logs a message with level c EINA_LOG_LEVEL_CRITICAL on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...
#define | EINA_CXX_LOG_ERR() EINA_CXX_LOG(EINA_LOG_LEVEL_ERR)
| Logs a message with level c EINA_LOG_LEVEL_ERR on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...
#define | EINA_CXX_LOG_INFO() EINA_CXX_LOG(EINA_LOG_LEVEL_INFO)
| Logs a message with level c EINA_LOG_LEVEL_INFO on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...
#define | EINA_CXX_LOG_DBG() EINA_CXX_LOG(EINA_LOG_LEVEL_DBG)
| Logs a message with level c EINA_LOG_LEVEL_DBG on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...
#define | EINA_CXX_LOG_WARN() EINA_CXX_LOG(EINA_LOG_LEVEL_WARN)
| Logs a message with level c EINA_LOG_LEVEL_WARN on the default domain c EINA_LOG_DOMAIN_DEFAULT. More...

## Functions
void | efl::eina::_log (std::stringstream const &stream, int domain,::Eina_Log_Level level, const char *file, const char *function, int line)

## Variables
struct global_domain const | efl::eina::global_domain = {}
| General purpose log domain. More...
struct default_domain const | efl::eina::default_domain = {}
| Default log domain. More...

## Detailed Description

## Macro Definition Documentation

#define EINA_CXX_DOM_LOG | ( |  | DOMAIN,
|  |  | LEVEL
| ) |  |

Value:
for( bool run = ::eina_log_domain_level_check((DOMAIN), LEVEL); run;) \
for(std::stringstream stream; run ; \
::efl::eina::_log(std::move(stream), (DOMAIN), LEVEL \
, __FILE__, __FUNCTION__, __LINE__), run = false) \
stream

Logs a message with level p LEVEL on the domain p DOMAIN.

It works like a STL output stream and should be used with the left shift operator. Example:

1 EINA_CXX_DOM_LOG(my_domain, my_log_level) << "My log message.";

#define EINA_CXX_DOM_LOG_CRIT | ( |  | DOMAIN | ) | EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_CRITICAL)

Logs a message with level c EINA_LOG_LEVEL_CRITICAL on the domain p DOMAIN.

It is a short for EINA_CXX_DOM_LOG(DOMAIN, ::EINA_LOG_LEVEL_CRITICAL).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_DOM_LOG_ERR | ( |  | DOMAIN | ) | EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_ERR)

Logs a message with level c EINA_LOG_LEVEL_ERR on the domain p DOMAIN.

It is a short for EINA_CXX_DOM_LOG(DOMAIN, ::EINA_LOG_LEVEL_ERR).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_DOM_LOG_INFO | ( |  | DOMAIN | ) | EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_INFO)

Logs a message with level c EINA_LOG_LEVEL_INFO on the domain p DOMAIN.

It is a short for EINA_CXX_DOM_LOG(DOMAIN, ::EINA_LOG_LEVEL_INFO).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_DOM_LOG_DBG | ( |  | DOMAIN | ) | EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_DBG)

Logs a message with level c EINA_LOG_LEVEL_DBG on the domain p DOMAIN.

It is a short for EINA_CXX_DOM_LOG(DOMAIN, ::EINA_LOG_LEVEL_DBG).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_DOM_LOG_WARN | ( |  | DOMAIN | ) | EINA_CXX_DOM_LOG(DOMAIN.domain_raw(), ::EINA_LOG_LEVEL_WARN)

Logs a message with level c EINA_LOG_LEVEL_WARN on the domain p DOMAIN.

It is a short for EINA_CXX_DOM_LOG(DOMAIN, ::EINA_LOG_LEVEL_WARN).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG | ( |  | LEVEL | ) | EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, LEVEL)

Logs a message with level p LEVEL on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, LEVEL).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG_CRIT | ( |  | ) | EINA_CXX_LOG(EINA_LOG_LEVEL_CRITICAL)

Logs a message with level c EINA_LOG_LEVEL_CRITICAL on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, ::EINA_LOG_LEVEL_CRITICAL).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG_ERR | ( |  | ) | EINA_CXX_LOG(EINA_LOG_LEVEL_ERR)

Logs a message with level c EINA_LOG_LEVEL_ERR on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, ::EINA_LOG_LEVEL_ERR).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG_INFO | ( |  | ) | EINA_CXX_LOG(EINA_LOG_LEVEL_INFO)

Logs a message with level c EINA_LOG_LEVEL_INFO on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, ::EINA_LOG_LEVEL_INFO).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG_DBG | ( |  | ) | EINA_CXX_LOG(EINA_LOG_LEVEL_DBG)

Logs a message with level c EINA_LOG_LEVEL_DBG on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, ::EINA_LOG_LEVEL_DBG).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

#define EINA_CXX_LOG_WARN | ( |  | ) | EINA_CXX_LOG(EINA_LOG_LEVEL_WARN)

Logs a message with level c EINA_LOG_LEVEL_WARN on the default domain c EINA_LOG_DOMAIN_DEFAULT.

It is a short for EINA_CXX_DOM_LOG(EINA_LOG_DOMAIN_DEFAULT, ::EINA_LOG_LEVEL_WARN).

See also
  EINA_CXX_DOM_LOG(DOMAIN, LEVEL)

## Variable Documentation

struct global_domain const efl::eina::global_domain = {}

General purpose log domain.

It is always registered and available everywhere.

struct default_domain const efl::eina::default_domain = {}

Default log domain.

If the macro `EINA_LOG_DOMAIN_DEFAULT` is not defined to anything different it will be equivalent to `global_domain`.