require "rottendesk/version"

require 'rottendesk/helpers/class'
require 'rottendesk/helpers/hash'

require 'rottendesk/models/dirty'
require 'rottendesk/models/model'
require 'rottendesk/models/ticket'
require 'rottendesk/models/user'

require 'rottendesk/client'
require 'rottendesk/app'

module Rottendesk
  class << self
    attr_reader :logger

    def logger=(logger)
      @logger = logger
      @logger.formatter = proc do |severity, datetime, progname, msg|
        "Rottendesk #{severity}: #{msg}"
      end
    end
  end
end

Rottendesk.logger = Logger.new $stdout

require "rottendesk/version"

require 'rottendesk/helpers/class'
require 'rottendesk/helpers/hash'

require 'rottendesk/models/dirty'
require 'rottendesk/models/model'
require 'rottendesk/models/ticket'
require 'rottendesk/models/user'

require 'rottendesk/client'
require 'rottendesk/app'

module Rottendesk
  class << self
    attr_reader :logger

    def logger=(logger)
      @logger = logger
      @logger.formatter = proc do |severity, datetime, progname, msg|
        "Rottendesk #{severity}: #{msg}\n"
      end
    end
  end
end

Rottendesk.logger = Logger.new $stdout

Add newline in logger message
Add newline in logger message
