Module: EasyLogging

Defined in:
lib/easy_logging.rb,
lib/easy_logging/version.rb

Constant Summary collapse

VERSION =
"0.3.0"

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.formatterObject

Returns the value of attribute formatter.



13
14
15
# File 'lib/easy_logging.rb', line 13

def formatter
  @formatter
end

.levelObject

Returns the value of attribute level.



13
14
15
# File 'lib/easy_logging.rb', line 13

def level
  @level
end

.log_destinationObject

Returns the value of attribute log_destination.



13
14
15
# File 'lib/easy_logging.rb', line 13

def log_destination
  @log_destination
end

Instance Method Details

#initializeObject



7
8
9
10
11
# File 'lib/easy_logging.rb', line 7

def initialize
  super
  # Initialize instance level logger at the time of instance creation
  logger
end

#loggerObject



19
20
21
# File 'lib/easy_logging.rb', line 19

def logger
  @logger ||= EasyLogging.logger_for(self.class.name)
end