# module Listen::Internals::Logging

### Public Instance Methods

_debug(*args, &block) click to toggle source

    # File lib/listen/internals/logging.rb, line 14
    def _debug(*args, &block)
      _log(:debug, *args, &block)
    end

_error_exception(fmt) click to toggle source

    # File lib/listen/internals/logging.rb, line 30
    def _error_exception(fmt)
      _log :error, _format_error(fmt)
    end

_format_error(fmt) click to toggle source

    # File lib/listen/internals/logging.rb, line 26
    def _format_error(fmt)
      format(fmt, $ERROR_INFO, ", Backtrace: \n" + $ERROR_POSITION * "\n")
    end

_info(*args, &block) click to toggle source

    # File lib/listen/internals/logging.rb, line 6
    def _info(*args, &block)
      _log(:info, *args, &block)
    end

_log(*args, &block) click to toggle source

    # File lib/listen/internals/logging.rb, line 18
    def _log(*args, &block)
      if block
        Celluloid::Logger.send(*args, block.call)
      else
        Celluloid::Logger.send(*args)
      end
    end

_warn(*args, &block) click to toggle source

    # File lib/listen/internals/logging.rb, line 10
    def _warn(*args, &block)
      _log(:warn, *args, &block)
    end