lib/language_server/common/logging.rb
# Log a message at ERROR level (and possibly a backtrace)
# @param msg [#to_s] Message to log
# @param err [StandardError] Optional error to log
Log a message at ERROR level (and possibly a backtrace)
Log a message at ERROR level ( and possibly a backtrace )
def log_error(msg, err = nil)
      log_msg = msg
      log_msg += ": #{err}\n\t#{err.backtrace.join("\n\t")}\n" if err
      Logging.log_msg(log_msg, ::Logger::ERROR)
    end
def log_error ( msg , err = nil ) log_msg = msg log_msg += ": #{err}\n\t#{err.backtrace.join("\n\t")}\n" if err Logging . log_msg ( log_msg , :: Logger :: ERROR ) end
Log a message at ERROR level (and possibly a backtrace)
Log a message at ERROR level ( and possibly a backtrace )
msg
Message to log
Message to log
err
Optional error to log
Optional error to log