Documentation/upgrades: highlight "embed.Config.LogOutputs" change

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-25 10:49:37 -07:00
parent d4987f4633
commit 53c5cd55f7

View File

@ -79,14 +79,14 @@ cfg := &embed.Config{Debug: false}
-cfg.SetupLogging()
```
Changed [`embed.Config.LogOutput` type from `string` to `[]string`](https://github.com/coreos/etcd/pull/9579) to support multiple log outputs.
Renamed [**`embed.Config.LogOutput`** to **`embed.Config.LogOutputs`**](https://github.com/coreos/etcd/pull/9624) to support multiple log outputs. And changed [`embed.Config.LogOutput` type from `string` to `[]string`](https://github.com/coreos/etcd/pull/9579) to support multiple log outputs.
```diff
import "github.com/coreos/etcd/embed"
cfg := &embed.Config{Debug: false}
-cfg.LogOutput = "stderr"
+cfg.LogOutput = []string{"stderr"}
+cfg.LogOutputs = []string{"stderr"}
```
#### Change in `etcd --config-file`