Sha256: 03d6ba13ee47f63d9d5eabcfe88ec927251500033266dee52cbf6585e51792f1

Contents?: true

Size: 680 Bytes

Versions: 29

Compression:

Stored size: 680 Bytes

Contents

#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = Log.rb -- PostRunner - Manage the data from your Garmin sport devices.
#
# Copyright (c) 2014, 2015 by Chris Schlaeger <cs@taskjuggler.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#

require 'fit4ruby'

module PostRunner

  # Use the Logger provided by Fit4Ruby for all console output.
  Log = Fit4Ruby::ILogger.instance
  Log.formatter = proc { |severity, datetime, progname, msg|
    "#{severity == Logger::INFO ? '' : "#{severity}:"} #{msg}\n"
  }
  Log.level = Logger::INFO

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
postrunner-1.2.0 lib/postrunner/Log.rb
postrunner-1.1.1 lib/postrunner/Log.rb
postrunner-1.1.0 lib/postrunner/Log.rb
postrunner-1.0.5 lib/postrunner/Log.rb
postrunner-1.0.4 lib/postrunner/Log.rb
postrunner-1.0.2 lib/postrunner/Log.rb
postrunner-1.0.1 lib/postrunner/Log.rb
postrunner-1.0.0 lib/postrunner/Log.rb
postrunner-0.12.0 lib/postrunner/Log.rb
postrunner-0.11.0 lib/postrunner/Log.rb
postrunner-0.10.1 lib/postrunner/Log.rb
postrunner-0.10.0 lib/postrunner/Log.rb
postrunner-0.9.0 lib/postrunner/Log.rb
postrunner-0.8.1 lib/postrunner/Log.rb
postrunner-0.8.0 lib/postrunner/Log.rb
postrunner-0.7.5 lib/postrunner/Log.rb
postrunner-0.7.4 lib/postrunner/Log.rb
postrunner-0.7.3 lib/postrunner/Log.rb
postrunner-0.7.2 lib/postrunner/Log.rb
postrunner-0.7.1 lib/postrunner/Log.rb