Class: Traceable::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
17
18
19
20
21
22
# File 'lib/traceable/config.rb', line 13

def initialize
  @logger = Logger.new(STDOUT)
  @logger.level = Logger::INFO

  @default_tags = {}

  @max_string_length = Args::MAX_STRING_LENGTH
  @max_array_values = Args::MAX_ARRAY_VALUES
  @max_hash_keys = Args::MAX_HASH_KEYS
end

Instance Attribute Details

#default_tagsObject

Returns the value of attribute default_tags.



7
8
9
# File 'lib/traceable/config.rb', line 7

def default_tags
  @default_tags
end

#loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/traceable/config.rb', line 8

def logger
  @logger
end

#max_array_valuesObject

Returns the value of attribute max_array_values.



10
11
12
# File 'lib/traceable/config.rb', line 10

def max_array_values
  @max_array_values
end

#max_hash_keysObject

Returns the value of attribute max_hash_keys.



11
12
13
# File 'lib/traceable/config.rb', line 11

def max_hash_keys
  @max_hash_keys
end

#max_string_lengthObject

Returns the value of attribute max_string_length.



9
10
11
# File 'lib/traceable/config.rb', line 9

def max_string_length
  @max_string_length
end