Module: Log
- Included in:
- Builder::Rlang::Compiler, Builder::Wat::Builder, Rlang::Parser::Attr, Rlang::Parser::CVar, Rlang::Parser::Const, Rlang::Parser::DAta, Rlang::Parser::IVar, Rlang::Parser::Klass, Rlang::Parser::MArg, Rlang::Parser::MEthod, Rlang::Parser::Module, Rlang::Parser::Parser, Rlang::Parser::WGenerator, Rlang::Parser::WNode, WType
- Defined in:
- lib/utils/log.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Addition
21 22 23 24 25 26 27 |
# File 'lib/utils/log.rb', line 21 def self.included(base) class << base def logger Log.logger end end end |
.logger ⇒ Object
11 12 13 |
# File 'lib/utils/log.rb', line 11 def logger @logger ||= Logger.new($stdout) end |
.logger=(logger) ⇒ Object
15 16 17 |
# File 'lib/utils/log.rb', line 15 def logger=(logger) @logger = logger end |