Module: Rbind::Logger
- Included in:
- Rbind, DefaultParser, GeneratorRuby::HelperBase, RCastOperation, ROperation, RTemplateClass
- Defined in:
- lib/rbind/logger.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
Class Method Summary collapse
Instance Attribute Details
#log ⇒ Object
Returns the value of attribute log.
5 6 7 |
# File 'lib/rbind/logger.rb', line 5 def log @log end |
Class Method Details
.extend_object(o) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rbind/logger.rb', line 6 def self.extend_object(o) super o.log = ::Logger.new(STDOUT) #o.log.level = ::Logger::INFO o.log.level = ::Logger::WARN o.log.progname = o.name o.log.formatter = proc do |severity, datetime, progname, msg| "#{progname}: #{msg}\n" end end |