Sha256: 1900c1a6617be10cd1438cef2a38567563aeb0b1f6a24d47d7e54fd41563a457

Contents?: true

Size: 956 Bytes

Versions: 62

Compression:

Stored size: 956 Bytes

Contents

module Picky
  
  module Loggers
    
    # The verbose logger outputs little information.
    #
    class Concise < Silent
      
      def initialize *args
        super *args
      end
      
      def tokenize(*)
        progress 'T'
      end
      
      def dump(*)
        progress 'D'
      end
      
      def load(*)
        progress
      end
      
      def progress type = '.'
        write type
      end
      
      def adapt_for_logger
        super
        def info text
          output.info text
        end
        def warn text
          output.warn text
        end
        def write message
          output << message
        end
      end
      def adapt_for_io
        super
        def info text
          output.write text
        end
        def warn text
          output.puts text
          flush
        end
        def write message
          output.write message
        end
      end
      
    end
    
  end
  
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
picky-4.31.3 lib/picky/loggers/concise.rb
picky-4.31.2 lib/picky/loggers/concise.rb
picky-4.31.1 lib/picky/loggers/concise.rb
picky-4.31.0 lib/picky/loggers/concise.rb
picky-4.30.0 lib/picky/loggers/concise.rb
picky-4.29.0 lib/picky/loggers/concise.rb
picky-4.28.1 lib/picky/loggers/concise.rb
picky-4.27.1 lib/picky/loggers/concise.rb
picky-4.27.0 lib/picky/loggers/concise.rb
picky-4.26.2 lib/picky/loggers/concise.rb
picky-4.26.1 lib/picky/loggers/concise.rb
picky-4.26.0 lib/picky/loggers/concise.rb
picky-4.25.3 lib/picky/loggers/concise.rb
picky-4.25.2 lib/picky/loggers/concise.rb
picky-4.25.1 lib/picky/loggers/concise.rb
picky-4.25.0 lib/picky/loggers/concise.rb
picky-4.24.0 lib/picky/loggers/concise.rb
picky-4.23.2 lib/picky/loggers/concise.rb
picky-4.23.1 lib/picky/loggers/concise.rb
picky-4.23.0 lib/picky/loggers/concise.rb