Class: DebugLogging::Configuration
- Inherits:
-
Object
- Object
- DebugLogging::Configuration
- Defined in:
- lib/debug_logging/configuration.rb
Instance Attribute Summary collapse
-
#add_invocation_id ⇒ Object
Returns the value of attribute add_invocation_id.
-
#args_max_length ⇒ Object
Returns the value of attribute args_max_length.
-
#class_benchmarks ⇒ Object
Returns the value of attribute class_benchmarks.
-
#ellipsis ⇒ Object
Returns the value of attribute ellipsis.
-
#instance_benchmarks ⇒ Object
Returns the value of attribute instance_benchmarks.
-
#last_hash_max_length ⇒ Object
Returns the value of attribute last_hash_max_length.
-
#last_hash_to_s_proc ⇒ Object
Returns the value of attribute last_hash_to_s_proc.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_id ⇒ Object
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_length ⇒ Object
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_benchmarks ⇒ Object
Returns the value of attribute class_benchmarks.
9 10 11 |
# File 'lib/debug_logging/configuration.rb', line 9 def class_benchmarks @class_benchmarks end |
#ellipsis ⇒ Object
Returns the value of attribute ellipsis.
11 12 13 |
# File 'lib/debug_logging/configuration.rb', line 11 def ellipsis @ellipsis end |
#instance_benchmarks ⇒ Object
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_length ⇒ Object
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_proc ⇒ Object
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_level ⇒ Object
Returns the value of attribute log_level.
4 5 6 |
# File 'lib/debug_logging/configuration.rb', line 4 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/debug_logging/configuration.rb', line 3 def logger @logger end |