Sha256: 31ebe35c60906e3425dedcfc4f313e344e63df21a1446f09509262e598627903
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
module Picky module Loggers # The verbose logger outputs all information. # class Verbose < Silent def info text timed_exclaim text end def tokenize index_or_category, prepared_file timed_exclaim %Q{ "#{index_or_category.identifier}": Tokenized -> #{prepared_file.path.gsub("#{Picky.root}/", '')}.} end def dump category timed_exclaim %Q{ "#{category.identifier}": Dumped -> #{category.index_directory.gsub("#{Picky.root}/", '')}/#{category.name}_*.} end def load category timed_exclaim %Q{ "#{category.identifier}": Loading index from cache.} end # Puts a text in the form: # 12:34:56: text here # def timed_exclaim text io.puts "#{Time.now.strftime("%H:%M:%S")}: #{text}" flush end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
picky-4.9.0 | lib/picky/loggers/verbose.rb |
picky-4.8.1 | lib/picky/loggers/verbose.rb |
picky-4.8.0 | lib/picky/loggers/verbose.rb |