Class: ObjectContextLogger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/object_context_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



51
52
53
54
# File 'lib/object_context_logger.rb', line 51

def initialize
  @default_object_identifier_method = :to_gid
  @default_log_method = :info
end

Instance Attribute Details

#default_log_methodObject

Returns the value of attribute default_log_method.



49
50
51
# File 'lib/object_context_logger.rb', line 49

def default_log_method
  @default_log_method
end

#default_object_identifier_methodObject

Returns the value of attribute default_object_identifier_method.



49
50
51
# File 'lib/object_context_logger.rb', line 49

def default_object_identifier_method
  @default_object_identifier_method
end

#log_to_stdoutObject

Returns the value of attribute log_to_stdout.



49
50
51
# File 'lib/object_context_logger.rb', line 49

def log_to_stdout
  @log_to_stdout
end

#loggerObject

Returns the value of attribute logger.



49
50
51
# File 'lib/object_context_logger.rb', line 49

def logger
  @logger
end