PagerDuty/net-ntp-check

View on GitHub
lib/net/ntp/check.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'logger'

require 'net/ntp/check/version'
require 'net/ntp/check/offset'
require 'net/ntp/check/statsd'

module Net
  module NTP
    ###
    # = Overview
    #
    # Net::NTP::Check checks NTP offset against several NTP servers
    module Check
      def self.logger
        @logger ||= Logger.new(STDOUT).tap do |l|
          l.level = Logger::INFO
        end
      end
    end
  end
end