See log4r/yamlconfigurator.rb
Get a parameter’s value
# File lib/log4r/yamlconfigurator.rb, line 24 def self.[](param); @@params[param] end
Define a parameter with a value
# File lib/log4r/yamlconfigurator.rb, line 26 def self.[]=(param, value); @@params[param] = value end
# File lib/log4r/yamlconfigurator.rb, line 29 def self.custom_levels( levels) return Logger.root if levels.size == 0 for i in 0...levels.size name = levels[i].to_s if name =~ /\s/ or name !~ /^[A-Z]/ raise TypeError, "#{name} is not a valid Ruby Constant name", caller end end Log4r.define_levels *levels end
Given a filename, loads the YAML configuration for Log4r.
# File lib/log4r/yamlconfigurator.rb, line 41 def self.load_yaml_file( filename) actual_load( File.open( filename)) end
Generated with the Darkfish Rdoc Generator 2.