Log
Overviewβ
Export evaluation data inside the application logger.Configure the relay proxyβ
info
This exporter is set up by default in the relay-proxy.
Configure the GO Moduleβ
To configure your GO module to use the Log exporter, you need to add the following
configuration to your ffclient.Config{} object:
example.go
config := ffclient.Config{
    // ...
   DataExporter: ffclient.DataExporter{
        Exporter: &logsexporter.Exporter{
            LogFormat: "[{{ .FormattedDate}}] user=\"{{ .UserKey}}\", flag=\"{{ .Key}}\", value=\"{{ .Value}}\"",
        },
    },
    // ...
}
err := ffclient.Init(config)
defer ffclient.Close()
| Field name | Mandatory | Default | Description | 
|---|---|---|---|
LogFormat | [{{ .FormattedDate}}] user="{{ .UserKey}}", flag="{{ .Key}}", value="{{ .Value}}" | LogFormat is the template configuration of the output format of your log. You can use all the key from the   |