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_idObject



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

def debug_add_invocation_id
  @debug_logging_configuration.add_invocation_id
end

#debug_add_invocation_id=(add_invocation_id) ⇒ Object



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

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

#debug_add_payloadObject



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

def debug_add_payload
  @debug_logging_configuration.add_payload
end

#debug_add_payload=(add_payload) ⇒ Object



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

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

#debug_args_max_lengthObject



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

def debug_args_max_length
  @debug_logging_configuration.args_max_length
end

#debug_args_max_length=(args_max_length) ⇒ Object



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

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

#debug_args_to_s_procObject



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

def debug_args_to_s_proc
  @debug_logging_configuration.args_to_s_proc
end

#debug_args_to_s_proc=(args_to_s_proc) ⇒ Object



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

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



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

def debug_class_benchmarks
  @debug_logging_configuration.class_benchmarks
end

#debug_class_benchmarks=(class_benchmarks) ⇒ Object



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

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

#debug_colorized_chain_for_classObject



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

def debug_colorized_chain_for_class
  @debug_logging_configuration.colorized_chain_for_class
end

#debug_colorized_chain_for_class=(colorized_chain_for_class) ⇒ Object



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

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



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

def debug_colorized_chain_for_method
  @debug_logging_configuration.colorized_chain_for_method
end

#debug_colorized_chain_for_method=(colorized_chain_for_method) ⇒ Object



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

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



129
130
131
# File 'lib/debug_logging.rb', line 129

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

#debug_ellipsisObject



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

def debug_ellipsis
  @debug_logging_configuration.ellipsis
end

#debug_ellipsis=(ellipsis) ⇒ Object



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

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

#debug_enabledObject



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

def debug_enabled
  @debug_logging_configuration.enabled
end

#debug_enabled=(value) ⇒ Object



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

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

#debug_error_handler_procObject



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

def debug_error_handler_proc
  @debug_logging_configuration.error_handler_proc
end

#debug_error_handler_proc=(error_handler_proc) ⇒ Object



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

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

#debug_instance_benchmarksObject



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

def debug_instance_benchmarks
  @debug_logging_configuration.instance_benchmarks
end

#debug_instance_benchmarks=(instance_benchmarks) ⇒ Object



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

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

#debug_last_hash_max_lengthObject



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

def debug_last_hash_max_length
  @debug_logging_configuration.last_hash_max_length
end

#debug_last_hash_max_length=(last_hash_max_length) ⇒ Object



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

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



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

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



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

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



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

def debug_log_level
  @debug_logging_configuration.log_level
end

#debug_log_level=(log_level) ⇒ Object



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

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

#debug_loggerObject



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

def debug_logger
  @debug_logging_configuration.logger
end

#debug_logger=(logger) ⇒ Object



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

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

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

For per-class config with a block



124
125
126
127
# File 'lib/debug_logging.rb', line 124

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

#debug_mark_scope_exitObject



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

def debug_mark_scope_exit
  @debug_logging_configuration.mark_scope_exit
end

#debug_mark_scope_exit=(mark_scope_exit) ⇒ Object



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

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

#debug_multiple_last_hashesObject



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

def debug_multiple_last_hashes
  @debug_logging_configuration.multiple_last_hashes
end

#debug_multiple_last_hashes=(multiple_last_hashes) ⇒ Object



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

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

#debug_payload_max_lengthObject



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

def debug_payload_max_length
  @debug_logging_configuration.payload_max_length
end

#debug_payload_max_length=(payload_max_length) ⇒ Object



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

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