module SemanticLogger

def self.backtrace_level=(level)

the time. It is recommended to run it at :error level in production.
Capturing backtraces is very expensive and should not be done all
Warning:

can be forwarded to error management services such as Bugsnag.
message was logged can be written to the log file. Additionally, the backtrace
By enabling backtrace capture the filename and line number of where

for every log message.
Sets the level at which backtraces should be captured
def self.backtrace_level=(level)
  @backtrace_level = level
  # For performance reasons pre-calculate the level index
  @backtrace_level_index = level.nil? ? 65_535 : Levels.index(level)
end