Class: DebugLogging::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/debug_logging/configuration.rb', line 12

def initialize
  @logger = Logger.new(STDOUT)
  @log_level = :debug
  @last_hash_to_s_proc = nil
  @last_hash_max_length = 1_000
  @args_max_length = 1_000
  @instance_benchmarks = false
  @class_benchmarks = false
  @add_invocation_id = true
  @ellipsis = " ✂️ …".freeze
end

Instance Attribute Details

#add_invocation_idObject

Returns the value of attribute add_invocation_id.



10
11
12
# File 'lib/debug_logging/configuration.rb', line 10

def add_invocation_id
  @add_invocation_id
end

#args_max_lengthObject

Returns the value of attribute args_max_length.



7
8
9
# File 'lib/debug_logging/configuration.rb', line 7

def args_max_length
  @args_max_length
end

#class_benchmarksObject

Returns the value of attribute class_benchmarks.



9
10
11
# File 'lib/debug_logging/configuration.rb', line 9

def class_benchmarks
  @class_benchmarks
end

#ellipsisObject

Returns the value of attribute ellipsis.



11
12
13
# File 'lib/debug_logging/configuration.rb', line 11

def ellipsis
  @ellipsis
end

#instance_benchmarksObject

Returns the value of attribute instance_benchmarks.



8
9
10
# File 'lib/debug_logging/configuration.rb', line 8

def instance_benchmarks
  @instance_benchmarks
end

#last_hash_max_lengthObject

Returns the value of attribute last_hash_max_length.



6
7
8
# File 'lib/debug_logging/configuration.rb', line 6

def last_hash_max_length
  @last_hash_max_length
end

#last_hash_to_s_procObject

Returns the value of attribute last_hash_to_s_proc.



5
6
7
# File 'lib/debug_logging/configuration.rb', line 5

def last_hash_to_s_proc
  @last_hash_to_s_proc
end

#log_levelObject

Returns the value of attribute log_level.



4
5
6
# File 'lib/debug_logging/configuration.rb', line 4

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/debug_logging/configuration.rb', line 3

def logger
  @logger
end