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



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

def debug_add_invocation_id
  @debug_logging_configuration.add_invocation_id
end

#debug_add_invocation_id=(add_invocation_id) ⇒ Object



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

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

#debug_add_payloadObject



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

def debug_add_payload
  @debug_logging_configuration.add_payload
end

#debug_add_payload=(add_payload) ⇒ Object



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

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

#debug_add_timestampObject



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

def debug_add_timestamp
  @debug_logging_configuration.add_timestamp
end

#debug_add_timestamp=(add_timestamp) ⇒ Object



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

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

#debug_args_max_lengthObject



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

def debug_args_max_length
  @debug_logging_configuration.args_max_length
end

#debug_args_max_length=(args_max_length) ⇒ Object



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

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

#debug_args_to_s_procObject



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

def debug_args_to_s_proc
  @debug_logging_configuration.args_to_s_proc
end

#debug_args_to_s_proc=(args_to_s_proc) ⇒ Object



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

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



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

def debug_class_benchmarks
  @debug_logging_configuration.class_benchmarks
end

#debug_class_benchmarks=(class_benchmarks) ⇒ Object



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

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

#debug_colorized_chain_for_classObject



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

def debug_colorized_chain_for_class
  @debug_logging_configuration.colorized_chain_for_class
end

#debug_colorized_chain_for_class=(colorized_chain_for_class) ⇒ Object



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

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



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

def debug_colorized_chain_for_method
  @debug_logging_configuration.colorized_chain_for_method
end

#debug_colorized_chain_for_method=(colorized_chain_for_method) ⇒ Object



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

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



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

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

#debug_ellipsisObject



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

def debug_ellipsis
  @debug_logging_configuration.ellipsis
end

#debug_ellipsis=(ellipsis) ⇒ Object



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

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

#debug_enabledObject



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

def debug_enabled
  @debug_logging_configuration.enabled
end

#debug_enabled=(value) ⇒ Object



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

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

#debug_error_handler_procObject



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

def debug_error_handler_proc
  @debug_logging_configuration.error_handler_proc
end

#debug_error_handler_proc=(error_handler_proc) ⇒ Object



301
302
303
# File 'lib/debug_logging.rb', line 301

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

#debug_instance_benchmarksObject



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

def debug_instance_benchmarks
  @debug_logging_configuration.instance_benchmarks
end

#debug_instance_benchmarks=(instance_benchmarks) ⇒ Object



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

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

#debug_last_hash_max_lengthObject



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

def debug_last_hash_max_length
  @debug_logging_configuration.last_hash_max_length
end

#debug_last_hash_max_length=(last_hash_max_length) ⇒ Object



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

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



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

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



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

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



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

def debug_log_level
  @debug_logging_configuration.log_level
end

#debug_log_level=(log_level) ⇒ Object



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

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

#debug_loggerObject



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

def debug_logger
  @debug_logging_configuration.logger
end

#debug_logger=(logger) ⇒ Object



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

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

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

For per-class config with a block



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

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

#debug_mark_scope_exitObject



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

def debug_mark_scope_exit
  @debug_logging_configuration.mark_scope_exit
end

#debug_mark_scope_exit=(mark_scope_exit) ⇒ Object



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

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

#debug_multiple_last_hashesObject



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

def debug_multiple_last_hashes
  @debug_logging_configuration.multiple_last_hashes
end

#debug_multiple_last_hashes=(multiple_last_hashes) ⇒ Object



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

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

#debug_payload_max_lengthObject



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

def debug_payload_max_length
  @debug_logging_configuration.payload_max_length
end

#debug_payload_max_length=(payload_max_length) ⇒ Object



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

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

#debug_time_formatter_procObject



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

def debug_time_formatter_proc
  @debug_logging_configuration.time_formatter_proc
end

#debug_time_formatter_proc=(time_formatter_proc) ⇒ Object



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

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