Module: Vk::Logging

Included in:
Vk, Vk, Client, Client
Defined in:
lib/vk/logging.rb

Overview

Logging for every class

Instance Attribute Summary collapse

Instance Attribute Details

#loggerLogger

Returns:

  • (Logger)

9
10
11
12
13
14
15
# File 'lib/vk/logging.rb', line 9

def logger
  @logger ||= if self.class.respond_to?(:logger)
                self.class.logger
              else
                Logger.new(STDOUT)
              end
end