Module: SDL2::Log

Defined in:
lib/sdl2/log.rb

Defined Under Namespace

Modules: CATEGORY, PRIORITY

Class Method Summary collapse

Class Method Details

.<<(msg, *args) ⇒ Object



43
44
45
# File 'lib/sdl2/log.rb', line 43

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

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



47
48
49
# File 'lib/sdl2/log.rb', line 47

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

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



51
52
53
# File 'lib/sdl2/log.rb', line 51

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

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



55
56
57
# File 'lib/sdl2/log.rb', line 55

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

.get_priority(category) ⇒ Object



71
72
73
# File 'lib/sdl2/log.rb', line 71

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

.set_priority(category, priority) ⇒ Object



67
68
69
# File 'lib/sdl2/log.rb', line 67

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

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



63
64
65
# File 'lib/sdl2/log.rb', line 63

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

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



59
60
61
# File 'lib/sdl2/log.rb', line 59

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

.with_temp_priority(level) ⇒ Object



75
76
77
78
# File 'lib/sdl2/log.rb', line 75

def self.with_temp_priority(level)
  raise "Block required" unless block_given?
  old_cat = self.get_priority(category)
end