func (c *Config) defaults() {
	if c.Log == nil {
		c.Log = log.Log
	}
}
defaults applies the default values.
package analytics
import (
	"encoding/json"
	"io"
	"io/ioutil"
	stdlog "log"
	"os"
	"path/filepath"
	"time"
	"github.com/apex/log"
	"github.com/hashicorp/go-uuid"
	"github.com/mitchellh/go-homedir"
	"github.com/pkg/errors"
	segment "github.com/segmentio/analytics-go"
)
type Event struct {
	Event      string                 `json:"event"`
	Properties map[string]interface{} `json:"properties"`
}
type Config struct {
	WriteKey string         
	Dir      string         
	Log      log.Interface  
}