Module: Efl::EinaLog

Defined in:
lib/efl/eina_log.rb,
lib/efl/native/eina_log.rb

Constant Summary

COLOR_LIGHTRED =
"\033[31;1m"
COLOR_RED =
"\033[31m"
COLOR_LIGHTBLUE =
"\033[34;1m"
COLOR_BLUE =
"\033[34m"
COLOR_GREEN =
"\033[32;1m"
COLOR_YELLOW =
"\033[33;1m"
COLOR_ORANGE =
"\033[0;33m"
COLOR_WHITE =
"\033[37;1m"
COLOR_LIGHTCYAN =
"\033[36;1m"
COLOR_CYAN =
"\033[36m"
COLOR_RESET =
"\033[0m"
COLOR_HIGH =
"\033[1m"
FCT_PREFIX =
'eina_log_'

Class Method Summary collapse

Class Method Details

.log_crit(msg) ⇒ Object



52
53
54
# File 'lib/efl/eina_log.rb', line 52

def self.log_crit msg
    self._log :eina_log_level_critical, msg
end

.log_dbg(msg) ⇒ Object



64
65
66
# File 'lib/efl/eina_log.rb', line 64

def self.log_dbg msg
    self._log :eina_log_level_dbg, msg
end

.log_dom_crit(dom, msg) ⇒ Object



24
25
26
27
# File 'lib/efl/eina_log.rb', line 24

def self.log_dom_crit dom, lvl, msg
    file, line, func = caller[1].split ':'
    Native.eina_log_print dom, lvl, file, func, line.to_i, msg
end

.log_dom_dbg(dom, msg) ⇒ Object



40
41
42
# File 'lib/efl/eina_log.rb', line 40

def self.log_dom_dbg dom, msg
    self._log_dom dom, :eina_log_level_dbg, msg
end

.log_dom_err(dom, msg) ⇒ Object



31
32
33
# File 'lib/efl/eina_log.rb', line 31

def self.log_dom_err dom, msg
    self._log_dom dom, :eina_log_level_err, msg
end

.log_dom_info(dom, msg) ⇒ Object



34
35
36
# File 'lib/efl/eina_log.rb', line 34

def self.log_dom_info dom, msg
    self._log_dom dom, :eina_log_level_info, msg
end

.log_dom_warn(dom, msg) ⇒ Object



37
38
39
# File 'lib/efl/eina_log.rb', line 37

def self.log_dom_warn dom, msg
    self._log_dom dom, :eina_log_level_warn, msg
end

.log_err(msg) ⇒ Object



55
56
57
# File 'lib/efl/eina_log.rb', line 55

def self.log_err msg
    self._log :eina_log_level_err, msg
end

.log_info(msg) ⇒ Object



58
59
60
# File 'lib/efl/eina_log.rb', line 58

def self.log_info msg
    self._log :eina_log_level_info, msg
end

.log_warn(msg) ⇒ Object



61
62
63
# File 'lib/efl/eina_log.rb', line 61

def self.log_warn msg
    self._log :eina_log_level_warn, msg
end

.method_missing(meth, *args, &block) ⇒ Object



12
13
14
15
# File 'lib/efl/native/eina_log.rb', line 12

def self.method_missing meth, *args, &block
    sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
    self.send sym, *args, &block
end