Class: SDL2::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/sdl2/log.rb

Class Method Summary collapse

Class Method Details

.<<(msg, *args) ⇒ Object



8
9
10
# File 'lib/sdl2/log.rb', line 8

def self.<<(msg, *args)
  SDL2.log(msg, *args)
end

.critical(category, msg, *args) ⇒ Object



12
13
14
# File 'lib/sdl2/log.rb', line 12

def self.critical(category, msg, *args)
  SDL2.log_critical(category, msg, *args)
end

.debug(category, msg, *args) ⇒ Object



16
17
18
# File 'lib/sdl2/log.rb', line 16

def self.debug(category, msg, *args)
  SDL2.log_debug(category, msg, *args)
end

.error(category, msg, *args) ⇒ Object



20
21
22
# File 'lib/sdl2/log.rb', line 20

def self.error(category, msg, *args)
  SDL2.log_error(category, msg, *args)
end

.get_priority(category) ⇒ Object



36
37
38
# File 'lib/sdl2/log.rb', line 36

def self.get_priority(category)
  SDL2.log_get_priority(category)
end

.set_priority(category, priority) ⇒ Object



32
33
34
# File 'lib/sdl2/log.rb', line 32

def self.set_priority(category, priority)
  SDL2.log_set_priority(category, priority)
end

.verbose(category, msg, *args) ⇒ Object



28
29
30
# File 'lib/sdl2/log.rb', line 28

def self.verbose(category, msg, *args)
  SDL2.log_verbose(category, msg, *args)
end

.warn(category, msg, *args) ⇒ Object



24
25
26
# File 'lib/sdl2/log.rb', line 24

def self.warn(category, msg, *args)
  SDL2.log_warn(category, msg, *args)      
end