Module: DebugLogging::ConfigClassMethods
- Includes:
- Constants
- Defined in:
- lib/debug_logging.rb
Constant Summary
Constants included
from Constants
DebugLogging::Constants::CONFIG_ATTRS, DebugLogging::Constants::CONFIG_ATTRS_DEFAULTS, DebugLogging::Constants::CONFIG_KEYS, DebugLogging::Constants::CONFIG_READERS, DebugLogging::Constants::CONFIG_READERS_DEFAULTS, DebugLogging::Constants::DEFAULT_ELLIPSIS
Instance Method Summary
collapse
Instance Method Details
#debug_add_invocation_id ⇒ Object
224
225
226
|
# File 'lib/debug_logging.rb', line 224
def debug_add_invocation_id
@debug_logging_configuration.add_invocation_id
end
|
#debug_add_invocation_id=(add_invocation_id) ⇒ Object
228
229
230
|
# File 'lib/debug_logging.rb', line 228
def debug_add_invocation_id=(add_invocation_id)
@debug_logging_configuration.add_invocation_id = add_invocation_id
end
|
#debug_add_payload ⇒ Object
248
249
250
|
# File 'lib/debug_logging.rb', line 248
def debug_add_payload
@debug_logging_configuration.add_payload
end
|
#debug_add_payload=(add_payload) ⇒ Object
252
253
254
|
# File 'lib/debug_logging.rb', line 252
def debug_add_payload=(add_payload)
@debug_logging_configuration.add_payload = add_payload
end
|
#debug_args_max_length ⇒ Object
184
185
186
|
# File 'lib/debug_logging.rb', line 184
def debug_args_max_length
@debug_logging_configuration.args_max_length
end
|
#debug_args_max_length=(args_max_length) ⇒ Object
188
189
190
|
# File 'lib/debug_logging.rb', line 188
def debug_args_max_length=(args_max_length)
@debug_logging_configuration.args_max_length = args_max_length
end
|
#debug_args_to_s_proc ⇒ Object
176
177
178
|
# File 'lib/debug_logging.rb', line 176
def debug_args_to_s_proc
@debug_logging_configuration.args_to_s_proc
end
|
#debug_args_to_s_proc=(args_to_s_proc) ⇒ Object
180
181
182
|
# File 'lib/debug_logging.rb', line 180
def debug_args_to_s_proc=(args_to_s_proc)
@debug_logging_configuration.args_to_s_proc = args_to_s_proc
end
|
#debug_class_benchmarks ⇒ Object
200
201
202
|
# File 'lib/debug_logging.rb', line 200
def debug_class_benchmarks
@debug_logging_configuration.class_benchmarks
end
|
#debug_class_benchmarks=(class_benchmarks) ⇒ Object
204
205
206
|
# File 'lib/debug_logging.rb', line 204
def debug_class_benchmarks=(class_benchmarks)
@debug_logging_configuration.class_benchmarks = class_benchmarks
end
|
#debug_colorized_chain_for_class ⇒ Object
216
217
218
|
# File 'lib/debug_logging.rb', line 216
def debug_colorized_chain_for_class
@debug_logging_configuration.colorized_chain_for_class
end
|
#debug_colorized_chain_for_class=(colorized_chain_for_class) ⇒ Object
220
221
222
|
# File 'lib/debug_logging.rb', line 220
def debug_colorized_chain_for_class=(colorized_chain_for_class)
@debug_logging_configuration.colorized_chain_for_class = colorized_chain_for_class
end
|
#debug_colorized_chain_for_method ⇒ Object
208
209
210
|
# File 'lib/debug_logging.rb', line 208
def debug_colorized_chain_for_method
@debug_logging_configuration.colorized_chain_for_method
end
|
#debug_colorized_chain_for_method=(colorized_chain_for_method) ⇒ Object
212
213
214
|
# File 'lib/debug_logging.rb', line 212
def debug_colorized_chain_for_method=(colorized_chain_for_method)
@debug_logging_configuration.colorized_chain_for_method = colorized_chain_for_method
end
|
#debug_config_reset(config = Configuration.new) ⇒ Object
124
125
126
|
# File 'lib/debug_logging.rb', line 124
def debug_config_reset(config = Configuration.new)
@debug_logging_configuration = config
end
|
#debug_ellipsis ⇒ Object
232
233
234
|
# File 'lib/debug_logging.rb', line 232
def debug_ellipsis
@debug_logging_configuration.ellipsis
end
|
#debug_ellipsis=(ellipsis) ⇒ Object
236
237
238
|
# File 'lib/debug_logging.rb', line 236
def debug_ellipsis=(ellipsis)
@debug_logging_configuration.ellipsis = ellipsis
end
|
#debug_enabled ⇒ Object
128
129
130
|
# File 'lib/debug_logging.rb', line 128
def debug_enabled
@debug_logging_configuration.enabled
end
|
#debug_enabled=(value) ⇒ Object
132
133
134
|
# File 'lib/debug_logging.rb', line 132
def debug_enabled=(value)
@debug_logging_configuration.enabled = value
end
|
#debug_error_handler_proc ⇒ Object
264
265
266
|
# File 'lib/debug_logging.rb', line 264
def debug_error_handler_proc
@debug_logging_configuration.error_handler_proc
end
|
#debug_error_handler_proc=(error_handler_proc) ⇒ Object
268
269
270
|
# File 'lib/debug_logging.rb', line 268
def debug_error_handler_proc=(error_handler_proc)
@debug_logging_configuration.error_handler_proc = error_handler_proc
end
|
#debug_instance_benchmarks ⇒ Object
192
193
194
|
# File 'lib/debug_logging.rb', line 192
def debug_instance_benchmarks
@debug_logging_configuration.instance_benchmarks
end
|
#debug_instance_benchmarks=(instance_benchmarks) ⇒ Object
196
197
198
|
# File 'lib/debug_logging.rb', line 196
def debug_instance_benchmarks=(instance_benchmarks)
@debug_logging_configuration.instance_benchmarks = instance_benchmarks
end
|
#debug_last_hash_max_length ⇒ Object
168
169
170
|
# File 'lib/debug_logging.rb', line 168
def debug_last_hash_max_length
@debug_logging_configuration.last_hash_max_length
end
|
#debug_last_hash_max_length=(last_hash_max_length) ⇒ Object
172
173
174
|
# File 'lib/debug_logging.rb', line 172
def debug_last_hash_max_length=(last_hash_max_length)
@debug_logging_configuration.last_hash_max_length = last_hash_max_length
end
|
#debug_last_hash_to_s_proc ⇒ Object
160
161
162
|
# File 'lib/debug_logging.rb', line 160
def debug_last_hash_to_s_proc
@debug_logging_configuration.last_hash_to_s_proc
end
|
#debug_last_hash_to_s_proc=(last_hash_to_s_proc) ⇒ Object
164
165
166
|
# File 'lib/debug_logging.rb', line 164
def debug_last_hash_to_s_proc=(last_hash_to_s_proc)
@debug_logging_configuration.last_hash_to_s_proc = last_hash_to_s_proc
end
|
#debug_log_level ⇒ Object
144
145
146
|
# File 'lib/debug_logging.rb', line 144
def debug_log_level
@debug_logging_configuration.log_level
end
|
#debug_log_level=(log_level) ⇒ Object
148
149
150
|
# File 'lib/debug_logging.rb', line 148
def debug_log_level=(log_level)
@debug_logging_configuration.log_level = log_level
end
|
#debug_logger ⇒ Object
136
137
138
|
# File 'lib/debug_logging.rb', line 136
def debug_logger
@debug_logging_configuration.logger
end
|
#debug_logger=(logger) ⇒ Object
140
141
142
|
# File 'lib/debug_logging.rb', line 140
def debug_logger=(logger)
@debug_logging_configuration.logger = logger
end
|
For per-class config with a block
119
120
121
122
|
# File 'lib/debug_logging.rb', line 119
def debug_logging_configure
@debug_logging_configuration ||= Configuration.new
yield(@debug_logging_configuration)
end
|
#debug_mark_scope_exit ⇒ Object
240
241
242
|
# File 'lib/debug_logging.rb', line 240
def debug_mark_scope_exit
@debug_logging_configuration.mark_scope_exit
end
|
#debug_mark_scope_exit=(mark_scope_exit) ⇒ Object
244
245
246
|
# File 'lib/debug_logging.rb', line 244
def debug_mark_scope_exit=(mark_scope_exit)
@debug_logging_configuration.mark_scope_exit = mark_scope_exit
end
|
#debug_multiple_last_hashes ⇒ Object
152
153
154
|
# File 'lib/debug_logging.rb', line 152
def debug_multiple_last_hashes
@debug_logging_configuration.multiple_last_hashes
end
|
#debug_multiple_last_hashes=(multiple_last_hashes) ⇒ Object
156
157
158
|
# File 'lib/debug_logging.rb', line 156
def debug_multiple_last_hashes=(multiple_last_hashes)
@debug_logging_configuration.multiple_last_hashes = multiple_last_hashes
end
|
#debug_payload_max_length ⇒ Object
256
257
258
|
# File 'lib/debug_logging.rb', line 256
def debug_payload_max_length
@debug_logging_configuration.payload_max_length
end
|
#debug_payload_max_length=(payload_max_length) ⇒ Object
260
261
262
|
# File 'lib/debug_logging.rb', line 260
def debug_payload_max_length=(payload_max_length)
@debug_logging_configuration.payload_max_length = payload_max_length
end
|