umputun/docker-logger

JSON output mode

Closed this issue · 1 comments

Add new parameter -j / --json (env JSON) to convert messages into JSON format

type jMsg struct {
	Msg       string    `json:"msg"`
	Container string    `json:"container"`
	Group     string    `json:"group"`
	TS        time.Time `json:"ts"`
	Host      string    `json:"host"`
}

By default, it will be off.

Done in develop branch 27b07cc