The new driver uses Azure Resource Manager APIs and offers a lot more functionality compared to the old Azure driver. It is also easier to authenticate and does not require user to create and place certificate files. It only has a single required argument. This is a breaking change: The new driver cannot work with machines created with the older Azure driver and vice versa (as the APIs are entirely different and resources are not shared between old/new azure APIs). The new driver addresses many issues about the azure driver reported so far. This resolves #2742, resolves #1368, resolves #1142, resolves #2236, resolves #2408, resolves #1126, resolves #774. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
17 lines
253 B
Go
17 lines
253 B
Go
package logutil
|
|
|
|
import "fmt"
|
|
|
|
type Fields map[string]interface{}
|
|
|
|
func (f Fields) String() string {
|
|
var s string
|
|
for k, v := range f {
|
|
if sv, ok := v.(string); ok {
|
|
v = fmt.Sprintf("%q", sv)
|
|
}
|
|
s += fmt.Sprintf(" %s=%v", k, v)
|
|
}
|
|
return s
|
|
}
|