Sha256: 82aee2769b84c28a81d646c3cdcff3f887d2a8a547859b883fd96c93a9309d5e

Contents?: true

Size: 245 Bytes

Versions: 7

Compression:

Stored size: 245 Bytes

Contents

module Larynx
  class Logger < ::Logger
    def format_message(severity, timestamp, progname, msg)
      time = timestamp.strftime("%Y-%m-%dT%H:%M:%S.") << "%06d" % timestamp.usec
      "[%s] %5s: %s\n" % [time, severity, msg]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
larynx-0.1.6 lib/larynx/logger.rb
larynx-0.1.5 lib/larynx/logger.rb
larynx-0.1.4 lib/larynx/logger.rb
larynx-0.1.3 lib/larynx/logger.rb
larynx-0.1.2 lib/larynx/logger.rb
larynx-0.1.1 lib/larynx/logger.rb
larynx-0.1.0 lib/larynx/logger.rb