Method: SemanticLogger::Log#file_name_and_line

Defined in:
lib/semantic_logger/log.rb

#file_name_and_line(short_name = false) ⇒ Object

Returns [String, String] the file_name and line_number from the backtrace supplied in either the backtrace or exception



262
263
264
265
# File 'lib/semantic_logger/log.rb', line 262

def file_name_and_line(short_name = false)
  stack = backtrace || exception&.backtrace
  extract_file_and_line(stack, short_name)
end