module SDL2::Log
Public Class Methods
<<(msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 43 def self.<<(msg, *args) SDL2.log(msg, *args) end
critical(category, msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 47 def self.critical(category, msg, *args) SDL2.log_critical(category, msg, *args) end
debug(category, msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 51 def self.debug(category, msg, *args) SDL2.log_debug(category, msg, *args) end
error(category, msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 55 def self.error(category, msg, *args) SDL2.log_error(category, msg, *args) end
get_priority(category)
click to toggle source
# File lib/sdl2/log.rb, line 71 def self.get_priority(category) SDL2.log_get_priority(category) end
set_priority(category, priority)
click to toggle source
# File lib/sdl2/log.rb, line 67 def self.set_priority(category, priority) SDL2.log_set_priority(category, priority) end
verbose(category, msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 63 def self.verbose(category, msg, *args) SDL2.log_verbose(category, msg, *args) end
warn(category, msg, *args)
click to toggle source
# File lib/sdl2/log.rb, line 59 def self.warn(category, msg, *args) SDL2.log_warn(category, msg, *args) end
with_temp_priority(level)
click to toggle source
# 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