lib/xcres/logger.rb
def fail message_or_exception, *format_args
    message, exception = coerce_to_message(message_or_exception)
    inform_colored '✗' + ' ' + message, :red, *format_args

    if verbose? && exception != nil
      log "Backtrace:\n"+exception.backtrace.join("\n"), :red
    end
  end
# Print a log message to indicate failure of an operation in red color
#
# @param [String|Exception] message_or_exception
#        The message, which can have format placeholders,
#        can also be a kind of Exception, then its message would been
#        used instead. The backtrace will be only printed, if the verbose
#        mode is enabled.
#
# @param [#to_s...] format_args
#        will be passed as right hand side to the percent operator,
#        which will fill the format placeholders used in the message
#
Print a log message to indicate failure of an operation in red color
Print a log message to indicate failure of an operation in red color
def fail message_or_exception, *format_args
    message, exception = coerce_to_message(message_or_exception)
    inform_colored '✗' + ' ' + message, :red, *format_args
    if verbose? && exception != nil
      log "Backtrace:\n"+exception.backtrace.join("\n"), :red
    end
  end
def fail message_or_exception , * format_args message , exception = coerce_to_message ( message_or_exception ) inform_colored '✗' + ' ' + m ssage,  : ed,  * o rmat_args if verbose? && exception != nil log "Backtrace:\n" + exception . backtrace . join ( "\n" ) , :red end end
Print a log message to indicate failure of an operation in red color
Print a log message to indicate failure of an operation in red color
message_or_exception
format_args
format_args will be passed as right hand side to the percent operator, which will fill the format placeholders used in the message
format_args will be passed as right hand side to the percent operator which will fill the format placeholders used in the message