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_idObject



252
253
254
# File 'lib/debug_logging.rb', line 252

def debug_add_invocation_id
  @debug_logging_configuration.add_invocation_id
end

#debug_add_invocation_id=(add_invocation_id) ⇒ Object



256
257
258
# File 'lib/debug_logging.rb', line 256

def debug_add_invocation_id=(add_invocation_id)
  @debug_logging_configuration.add_invocation_id = add_invocation_id
end

#debug_add_payloadObject



276
277
278
# File 'lib/debug_logging.rb', line 276

def debug_add_payload
  @debug_logging_configuration.add_payload
end

#debug_add_payload=(add_payload) ⇒ Object



280
281
282
# File 'lib/debug_logging.rb', line 280

def debug_add_payload=(add_payload)
  @debug_logging_configuration.add_payload = add_payload
end

#debug_add_timestampObject



236
237
238
# File 'lib/debug_logging.rb', line 236

def debug_add_timestamp
  @debug_logging_configuration.add_timestamp
end

#debug_add_timestamp=(add_timestamp) ⇒ Object



240
241
242
# File 'lib/debug_logging.rb', line 240

def debug_add_timestamp=(add_timestamp)
  @debug_logging_configuration.add_timestamp = add_timestamp
end

#debug_args_max_lengthObject



196
197
198
# File 'lib/debug_logging.rb', line 196

def debug_args_max_length
  @debug_logging_configuration.args_max_length
end

#debug_args_max_length=(args_max_length) ⇒ Object



200
201
202
# File 'lib/debug_logging.rb', line 200

def debug_args_max_length=(args_max_length)
  @debug_logging_configuration.args_max_length = args_max_length
end

#debug_args_to_s_procObject



188
189
190
# File 'lib/debug_logging.rb', line 188

def debug_args_to_s_proc
  @debug_logging_configuration.args_to_s_proc
end

#debug_args_to_s_proc=(args_to_s_proc) ⇒ Object



192
193
194
# File 'lib/debug_logging.rb', line 192

def debug_args_to_s_proc=(args_to_s_proc)
  @debug_logging_configuration.args_to_s_proc = args_to_s_proc
end

#debug_class_benchmarksObject



212
213
214
# File 'lib/debug_logging.rb', line 212

def debug_class_benchmarks
  @debug_logging_configuration.class_benchmarks
end

#debug_class_benchmarks=(class_benchmarks) ⇒ Object



216
217
218
# File 'lib/debug_logging.rb', line 216

def debug_class_benchmarks=(class_benchmarks)
  @debug_logging_configuration.class_benchmarks = class_benchmarks
end

#debug_colorized_chain_for_classObject



228
229
230
# File 'lib/debug_logging.rb', line 228

def debug_colorized_chain_for_class
  @debug_logging_configuration.colorized_chain_for_class
end

#debug_colorized_chain_for_class=(colorized_chain_for_class) ⇒ Object



232
233
234
# File 'lib/debug_logging.rb', line 232

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_methodObject



220
221
222
# File 'lib/debug_logging.rb', line 220

def debug_colorized_chain_for_method
  @debug_logging_configuration.colorized_chain_for_method
end

#debug_colorized_chain_for_method=(colorized_chain_for_method) ⇒ Object



224
225
226
# File 'lib/debug_logging.rb', line 224

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



136
137
138
# File 'lib/debug_logging.rb', line 136

def debug_config_reset(config = Configuration.new)
  @debug_logging_configuration = config
end

#debug_ellipsisObject



260
261
262
# File 'lib/debug_logging.rb', line 260

def debug_ellipsis
  @debug_logging_configuration.ellipsis
end

#debug_ellipsis=(ellipsis) ⇒ Object



264
265
266
# File 'lib/debug_logging.rb', line 264

def debug_ellipsis=(ellipsis)
  @debug_logging_configuration.ellipsis = ellipsis
end

#debug_enabledObject



140
141
142
# File 'lib/debug_logging.rb', line 140

def debug_enabled
  @debug_logging_configuration.enabled
end

#debug_enabled=(value) ⇒ Object



144
145
146
# File 'lib/debug_logging.rb', line 144

def debug_enabled=(value)
  @debug_logging_configuration.enabled = value
end

#debug_error_handler_procObject



292
293
294
# File 'lib/debug_logging.rb', line 292

def debug_error_handler_proc
  @debug_logging_configuration.error_handler_proc
end

#debug_error_handler_proc=(error_handler_proc) ⇒ Object



296
297
298
# File 'lib/debug_logging.rb', line 296

def debug_error_handler_proc=(error_handler_proc)
  @debug_logging_configuration.error_handler_proc = error_handler_proc
end

#debug_instance_benchmarksObject



204
205
206
# File 'lib/debug_logging.rb', line 204

def debug_instance_benchmarks
  @debug_logging_configuration.instance_benchmarks
end

#debug_instance_benchmarks=(instance_benchmarks) ⇒ Object



208
209
210
# File 'lib/debug_logging.rb', line 208

def debug_instance_benchmarks=(instance_benchmarks)
  @debug_logging_configuration.instance_benchmarks = instance_benchmarks
end

#debug_last_hash_max_lengthObject



180
181
182
# File 'lib/debug_logging.rb', line 180

def debug_last_hash_max_length
  @debug_logging_configuration.last_hash_max_length
end

#debug_last_hash_max_length=(last_hash_max_length) ⇒ Object



184
185
186
# File 'lib/debug_logging.rb', line 184

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_procObject



172
173
174
# File 'lib/debug_logging.rb', line 172

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



176
177
178
# File 'lib/debug_logging.rb', line 176

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_levelObject



156
157
158
# File 'lib/debug_logging.rb', line 156

def debug_log_level
  @debug_logging_configuration.log_level
end

#debug_log_level=(log_level) ⇒ Object



160
161
162
# File 'lib/debug_logging.rb', line 160

def debug_log_level=(log_level)
  @debug_logging_configuration.log_level = log_level
end

#debug_loggerObject



148
149
150
# File 'lib/debug_logging.rb', line 148

def debug_logger
  @debug_logging_configuration.logger
end

#debug_logger=(logger) ⇒ Object



152
153
154
# File 'lib/debug_logging.rb', line 152

def debug_logger=(logger)
  @debug_logging_configuration.logger = logger
end

#debug_logging_configure {|@debug_logging_configuration| ... } ⇒ Object

For per-class config with a block



131
132
133
134
# File 'lib/debug_logging.rb', line 131

def debug_logging_configure
  @debug_logging_configuration ||= Configuration.new
  yield(@debug_logging_configuration)
end

#debug_mark_scope_exitObject



268
269
270
# File 'lib/debug_logging.rb', line 268

def debug_mark_scope_exit
  @debug_logging_configuration.mark_scope_exit
end

#debug_mark_scope_exit=(mark_scope_exit) ⇒ Object



272
273
274
# File 'lib/debug_logging.rb', line 272

def debug_mark_scope_exit=(mark_scope_exit)
  @debug_logging_configuration.mark_scope_exit = mark_scope_exit
end

#debug_multiple_last_hashesObject



164
165
166
# File 'lib/debug_logging.rb', line 164

def debug_multiple_last_hashes
  @debug_logging_configuration.multiple_last_hashes
end

#debug_multiple_last_hashes=(multiple_last_hashes) ⇒ Object



168
169
170
# File 'lib/debug_logging.rb', line 168

def debug_multiple_last_hashes=(multiple_last_hashes)
  @debug_logging_configuration.multiple_last_hashes = multiple_last_hashes
end

#debug_payload_max_lengthObject



284
285
286
# File 'lib/debug_logging.rb', line 284

def debug_payload_max_length
  @debug_logging_configuration.payload_max_length
end

#debug_payload_max_length=(payload_max_length) ⇒ Object



288
289
290
# File 'lib/debug_logging.rb', line 288

def debug_payload_max_length=(payload_max_length)
  @debug_logging_configuration.payload_max_length = payload_max_length
end

#debug_time_formatter_procObject



244
245
246
# File 'lib/debug_logging.rb', line 244

def debug_time_formatter_proc
  @debug_logging_configuration.time_formatter_proc
end

#debug_time_formatter_proc=(time_formatter_proc) ⇒ Object



248
249
250
# File 'lib/debug_logging.rb', line 248

def debug_time_formatter_proc=(time_formatter_proc)
  @debug_logging_configuration.time_formatter_proc = time_formatter_proc
end