Sha256: 8707489ab8f47a75f33a6f97d0a29d2842d04da262f3ce11b1217267e895e028

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

require 'celluloid/logger'

module Listen
  module Internals
    module Logging
      def _info(*args)
        _log(:info, *args)
      end

      def _warn(*args)
        _log(:warn, *args)
      end

      def _debug(*args)
        _log(:debug, *args)
      end

      def _log(*args)
        Celluloid::Logger.send(*args)
      end

      def _format_error(fmt)
        format(fmt, $ERROR_INFO, ", Backtrace: \n" + $ERROR_POSITION * "\n")
      end

      def _error_exception(fmt)
        _log :error, _format_error(fmt)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
listen-2.8.4 lib/listen/internals/logging.rb
listen-2.8.3 lib/listen/internals/logging.rb
listen-2.8.2 lib/listen/internals/logging.rb
listen-2.8.1 lib/listen/internals/logging.rb
listen-2.8.0 lib/listen/internals/logging.rb
listen-2.7.12 lib/listen/internals/logging.rb