def init_logger
      @logger = case @path
                when STDOUT_STREAM then Logger.new(STDOUT)
                when STDERR_STREAM then Logger.new(STDERR)
                else Logger.new(File.open(@path, 'a'))
                end
      @logger.datetime_format = @datetime_format
      @logger.sev_threshold = @threshold unless @severities.any?
      @logger.formatter = @formatter unless @formatter.nil?
    end
def init_logger
      @logger = case @path
                when STDOUT_STREAM then Logger.new(STDOUT)
                when STDERR_STREAM then Logger.new(STDERR)
                else Logger.new(File.open(@path, 'a'))
                end
      @logger.datetime_format = @datetime_format
      @logger.sev_threshold = @threshold unless @severities.any?
      @logger.formatter = @formatter unless @formatter.nil?
    end
Initializes the logger object from the standard library. This method
 should only be called inside the register method
 @private