Sha256: 06018daa0736c354560678abc30040d4ebe5b91c13e1b5c8bcaf2093de21e3c0

Contents?: true

Size: 379 Bytes

Versions: 23

Compression:

Stored size: 379 Bytes

Contents

module SequenceServer
  # We change Logging format so that it is consistent with Sinatra's
  class SinatraLikeLogFormatter < Logger::Formatter 
    MyFormat = "[%s] %s  %s\n"
    def initialize
      self.datetime_format = "%Y-%m-%d %H:%M:%S" 
    end
    def call(severity, time, progname, msg)
      MyFormat % [format_datetime(time), severity, msg2str(msg)]
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
sequenceserver-0.8.9 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.7 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.7.beta1 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-beta-0.8.7.beta1 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.6 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.5 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.4 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.3 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.2 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.1 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.8.0 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.9 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.8 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.7 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.6 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.5 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.4 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.3 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.2 lib/sequenceserver/sinatralikeloggerformatter.rb
sequenceserver-0.7.1 lib/sequenceserver/sinatralikeloggerformatter.rb