Module: Logging

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Addition



15
16
17
18
19
20
21
# File 'lib/po_and_xliff_consolidator/logging.rb', line 15

def self.included(base)
  class << base
    def logger
      Logging.logger
    end
  end
end

.loggerObject



5
6
7
# File 'lib/po_and_xliff_consolidator/logging.rb', line 5

def logger
  @logger ||= Logger.new($stdout)
end

.logger=(logger) ⇒ Object



9
10
11
# File 'lib/po_and_xliff_consolidator/logging.rb', line 9

def logger=(logger)
  @logger = logger
end

Instance Method Details

#loggerObject



23
24
25
# File 'lib/po_and_xliff_consolidator/logging.rb', line 23

def logger
  Logging.logger
end