func makeBatch()

in internal/output/lumberjack/lumberjack.go [120:130]


func makeBatch(b []byte, parseJSON bool) []interface{} {
	if parseJSON {
		return makeBatchFromJSON(b)
	}

	return []interface{}{
		map[string]interface{}{
			"message": string(b),
		},
	}
}