module Dougie

Constants

CONFIG_FILE
DEFAULT_ENVIRONMENT
ROOT
SHOPIFY_CONFIG_FILE
VERSION

Attributes

logger[W]

Public Class Methods

logger() click to toggle source
# File lib/dougie/logger.rb, line 7
def logger
  @logger ||= Logger.new($stdout).tap do |log|
    log.progname = self.name
    log.formatter = proc do |severity, datetime, progname, msg|
      string = "Bodega: "
      case severity
      when 'INFO'
        string.concat("👍  ")
      when 'WARN'
        string.concat("⚠️  ")
      when 'ERROR'
        string.concat("🔥  ")
      end
      string.concat("#{msg}\n")
    end
  end
end