e log: Use a EINA_LOG_LEVELS environment variable for setting log level instead of a E_LOG_LEVEL macro
Summary: Use a EINA_LOG_LEVELS environment variable for setting log level instead of a E_LOG_LEVEL macro Test Plan: run e with EINA_LOG_LEVELS=e:4 environment variable. we can see log messages using EINA_LOG_DOM_DBG. Reviewers: zmike, raster, devilhorns Reviewed By: raster CC: cedric Differential Revision: https://phab.enlightenment.org/D885
This commit is contained in:
parent
8ec74517ed
commit
9a85338d9c
|
@ -1,9 +1,5 @@
|
||||||
#include "e.h"
|
#include "e.h"
|
||||||
|
|
||||||
#ifndef E_LOG_LEVEL
|
|
||||||
# define E_LOG_LEVEL EINA_LOG_LEVEL_INFO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EINTERN int e_log_dom = -1;
|
EINTERN int e_log_dom = -1;
|
||||||
|
|
||||||
static const char *_names[] = {
|
static const char *_names[] = {
|
||||||
|
@ -32,7 +28,6 @@ EINTERN int
|
||||||
e_log_init(void)
|
e_log_init(void)
|
||||||
{
|
{
|
||||||
e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE);
|
e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE);
|
||||||
eina_log_domain_level_set("e", E_LOG_LEVEL);
|
|
||||||
eina_log_print_cb_set(_e_log_cb, NULL);
|
eina_log_print_cb_set(_e_log_cb, NULL);
|
||||||
return e_log_dom != -1;
|
return e_log_dom != -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue