Module: Camper::Logging

Included in:
Client, Configuration, PaginatedResponse, PaginationData, Request
Defined in:
lib/camper/logging.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Attribute Details

.logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



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

def logger=(value)
  @logger = value
end

Instance Attribute Details

#loggerLogger

Returns The logger.

Returns:

  • (Logger)

    The logger.



14
15
16
# File 'lib/camper/logging.rb', line 14

def logger
  @logger ||= default_logger
end