efl/src/bindings/eina_cxx
Felipe Magno de Almeida 416376e03c eina-cxx: Added eina_log support for C++, using IOStreams syntax
Summary:
Added eina_log support for C++ using the following macros:

For logging into a domain:

EINA_CXX_DOM_LOG
EINA_CXX_DOM_LOG_CRIT
EINA_CXX_DOM_LOG_ERR
EINA_CXX_DOM_LOG_INFO
EINA_CXX_DOM_LOG_DBG
EINA_CXX_DOM_LOG_WARN

And for logging into the default domain:

EINA_CXX_LOG
EINA_CXX_LOG_CRIT
EINA_CXX_LOG_ERR
EINA_CXX_LOG_INFO
EINA_CXX_LOG_DBG
EINA_CXX_LOG_WARN

The usage is simple as can be seen in the tests:

  efl::eina::log_domain domain("error_domain_name");
  domain.set_level(efl::eina::log_level::critical);
  EINA_CXX_DOM_LOG_CRIT(domain, "something went wrong with the following error: " << error);

@feature

Reviewers: cedric

CC: raster, savio, cedric, sanjeev

Differential Revision: https://phab.enlightenment.org/D605
2014-03-10 12:35:00 +09:00
..
Eina.hh eina-cxx: Added eina_log support for C++, using IOStreams syntax 2014-03-10 12:35:00 +09:00
eina_accessor.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_clone_allocators.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_error.hh ecore-cxx: add support for exceptions. 2014-03-07 14:37:03 +09:00
eina_inarray.hh eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_inlist.hh eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_iterator.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_lists_auxiliary.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_log.hh eina-cxx: Added eina_log support for C++, using IOStreams syntax 2014-03-10 12:35:00 +09:00
eina_ptrarray.hh eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_ptrlist.hh eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_range_types.hh eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_ref.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_stringshare.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_thread.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_type_traits.hh eina_cxx: move Eina_CXX to a bindings subdirectory. 2014-02-26 12:18:26 -03:00
eina_value.hh eina-cxx: renamed efl::eina::eina_value to efl::eina::value 2014-03-07 14:32:42 +09:00