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, DebugLogging::Constants::DEFAULT_TIME_FORMATTER, DebugLogging::Constants::EVENT_TIME_FORMATTER
Instance Method Summary
collapse
Instance Method Details
#debug_add_invocation_id ⇒ Object
247
248
249
|
# File 'lib/debug_logging.rb', line 247
def debug_add_invocation_id
@debug_logging_configuration.add_invocation_id
end
|
#debug_add_invocation_id=(add_invocation_id) ⇒ Object
251
252
253
|
# File 'lib/debug_logging.rb', line 251
def debug_add_invocation_id=(add_invocation_id)
@debug_logging_configuration.add_invocation_id = add_invocation_id
end
|
#debug_add_payload ⇒ Object
271
272
273
|
# File 'lib/debug_logging.rb', line 271
def debug_add_payload
@debug_logging_configuration.add_payload
end
|
#debug_add_payload=(add_payload) ⇒ Object
275
276
277
|
# File 'lib/debug_logging.rb', line 275
def debug_add_payload=(add_payload)
@debug_logging_configuration.add_payload = add_payload
end
|
#debug_add_timestamp ⇒ Object
231
232
233
|
# File 'lib/debug_logging.rb', line 231
def debug_add_timestamp
@debug_logging_configuration.add_timestamp
end
|
#debug_add_timestamp=(add_timestamp) ⇒ Object
235
236
237
|
# File 'lib/debug_logging.rb', line 235
def debug_add_timestamp=(add_timestamp)
@debug_logging_configuration.add_timestamp = add_timestamp
end
|
#debug_args_max_length ⇒ Object
191
192
193
|
# File 'lib/debug_logging.rb', line 191
def debug_args_max_length
@debug_logging_configuration.args_max_length
end
|
#debug_args_max_length=(args_max_length) ⇒ Object
195
196
197
|
# File 'lib/debug_logging.rb', line 195
def debug_args_max_length=(args_max_length)
@debug_logging_configuration.args_max_length = args_max_length
end
|
#debug_args_to_s_proc ⇒ Object
183
184
185
|
# File 'lib/debug_logging.rb', line 183
def debug_args_to_s_proc
@debug_logging_configuration.args_to_s_proc
end
|
#debug_args_to_s_proc=(args_to_s_proc) ⇒ Object
187
188
189
|
# File 'lib/debug_logging.rb', line 187
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
207
208
209
|
# File 'lib/debug_logging.rb', line 207
def debug_class_benchmarks
@debug_logging_configuration.class_benchmarks
end
|
#debug_class_benchmarks=(class_benchmarks) ⇒ Object
211
212
213
|
# File 'lib/debug_logging.rb', line 211
def debug_class_benchmarks=(class_benchmarks)
@debug_logging_configuration.class_benchmarks = class_benchmarks
end
|
#debug_colorized_chain_for_class ⇒ Object
223
224
225
|
# File 'lib/debug_logging.rb', line 223
def debug_colorized_chain_for_class
@debug_logging_configuration.colorized_chain_for_class
end
|
#debug_colorized_chain_for_class=(colorized_chain_for_class) ⇒ Object
227
228
229
|
# File 'lib/debug_logging.rb', line 227
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
215
216
217
|
# File 'lib/debug_logging.rb', line 215
def debug_colorized_chain_for_method
@debug_logging_configuration.colorized_chain_for_method
end
|
#debug_colorized_chain_for_method=(colorized_chain_for_method) ⇒ Object
219
220
221
|
# File 'lib/debug_logging.rb', line 219
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
131
132
133
|
# File 'lib/debug_logging.rb', line 131
def debug_config_reset(config = Configuration.new)
@debug_logging_configuration = config
end
|
#debug_ellipsis ⇒ Object
255
256
257
|
# File 'lib/debug_logging.rb', line 255
def debug_ellipsis
@debug_logging_configuration.ellipsis
end
|
#debug_ellipsis=(ellipsis) ⇒ Object
259
260
261
|
# File 'lib/debug_logging.rb', line 259
def debug_ellipsis=(ellipsis)
@debug_logging_configuration.ellipsis = ellipsis
end
|
#debug_enabled ⇒ Object
135
136
137
|
# File 'lib/debug_logging.rb', line 135
def debug_enabled
@debug_logging_configuration.enabled
end
|
#debug_enabled=(value) ⇒ Object
139
140
141
|
# File 'lib/debug_logging.rb', line 139
def debug_enabled=(value)
@debug_logging_configuration.enabled = value
end
|
#debug_error_handler_proc ⇒ Object
287
288
289
|
# File 'lib/debug_logging.rb', line 287
def debug_error_handler_proc
@debug_logging_configuration.error_handler_proc
end
|
#debug_error_handler_proc=(error_handler_proc) ⇒ Object
291
292
293
|
# File 'lib/debug_logging.rb', line 291
def debug_error_handler_proc=(error_handler_proc)
@debug_logging_configuration.error_handler_proc = error_handler_proc
end
|
#debug_instance_benchmarks ⇒ Object
199
200
201
|
# File 'lib/debug_logging.rb', line 199
def debug_instance_benchmarks
@debug_logging_configuration.instance_benchmarks
end
|
#debug_instance_benchmarks=(instance_benchmarks) ⇒ Object
203
204
205
|
# File 'lib/debug_logging.rb', line 203
def debug_instance_benchmarks=(instance_benchmarks)
@debug_logging_configuration.instance_benchmarks = instance_benchmarks
end
|
#debug_last_hash_max_length ⇒ Object
175
176
177
|
# File 'lib/debug_logging.rb', line 175
def debug_last_hash_max_length
@debug_logging_configuration.last_hash_max_length
end
|
#debug_last_hash_max_length=(last_hash_max_length) ⇒ Object
179
180
181
|
# File 'lib/debug_logging.rb', line 179
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
167
168
169
|
# File 'lib/debug_logging.rb', line 167
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
171
172
173
|
# File 'lib/debug_logging.rb', line 171
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
151
152
153
|
# File 'lib/debug_logging.rb', line 151
def debug_log_level
@debug_logging_configuration.log_level
end
|
#debug_log_level=(log_level) ⇒ Object
155
156
157
|
# File 'lib/debug_logging.rb', line 155
def debug_log_level=(log_level)
@debug_logging_configuration.log_level = log_level
end
|
#debug_logger ⇒ Object
143
144
145
|
# File 'lib/debug_logging.rb', line 143
def debug_logger
@debug_logging_configuration.logger
end
|
#debug_logger=(logger) ⇒ Object
147
148
149
|
# File 'lib/debug_logging.rb', line 147
def debug_logger=(logger)
@debug_logging_configuration.logger = logger
end
|
For per-class config with a block
126
127
128
129
|
# File 'lib/debug_logging.rb', line 126
def debug_logging_configure
@debug_logging_configuration ||= Configuration.new
yield(@debug_logging_configuration)
end
|
#debug_mark_scope_exit ⇒ Object
263
264
265
|
# File 'lib/debug_logging.rb', line 263
def debug_mark_scope_exit
@debug_logging_configuration.mark_scope_exit
end
|
#debug_mark_scope_exit=(mark_scope_exit) ⇒ Object
267
268
269
|
# File 'lib/debug_logging.rb', line 267
def debug_mark_scope_exit=(mark_scope_exit)
@debug_logging_configuration.mark_scope_exit = mark_scope_exit
end
|
#debug_multiple_last_hashes ⇒ Object
159
160
161
|
# File 'lib/debug_logging.rb', line 159
def debug_multiple_last_hashes
@debug_logging_configuration.multiple_last_hashes
end
|
#debug_multiple_last_hashes=(multiple_last_hashes) ⇒ Object
163
164
165
|
# File 'lib/debug_logging.rb', line 163
def debug_multiple_last_hashes=(multiple_last_hashes)
@debug_logging_configuration.multiple_last_hashes = multiple_last_hashes
end
|
#debug_payload_max_length ⇒ Object
279
280
281
|
# File 'lib/debug_logging.rb', line 279
def debug_payload_max_length
@debug_logging_configuration.payload_max_length
end
|
#debug_payload_max_length=(payload_max_length) ⇒ Object
283
284
285
|
# File 'lib/debug_logging.rb', line 283
def debug_payload_max_length=(payload_max_length)
@debug_logging_configuration.payload_max_length = payload_max_length
end
|
239
240
241
|
# File 'lib/debug_logging.rb', line 239
def debug_time_formatter_proc
@debug_logging_configuration.time_formatter_proc
end
|
243
244
245
|
# File 'lib/debug_logging.rb', line 243
def debug_time_formatter_proc=(time_formatter_proc)
@debug_logging_configuration.time_formatter_proc = time_formatter_proc
end
|