slack-ruby/slack-ruby-client

View on GitHub
lib/slack/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
require 'logger'

module Slack
  class Logger < ::Logger
    def self.default
      return @default if @default

      logger = new STDOUT
      logger.level = Logger::WARN
      @default = logger
    end
  end
end