Fix plugin logging missing context fields

Fix an issue where context fields logged by server on behalf of plugins didn't contain correct name/value pairs:
- bump Logr version to add key/value methods to sugar logger
- expose factory args when configuring logging with custom target types (needed for FocalBoard to create log target adapter that converts typed fields into slices of interface{} as per plugin logging API)
Этот коммит содержится в:
Doug Lauder
2021-09-13 10:12:18 -04:00
коммит произвёл GitHub
родитель 17fe158f5e
Коммит bb659d03fd
53 изменённых файлов: 237 добавлений и 3702 удалений

Просмотреть файл

@@ -536,7 +536,7 @@ func TestPanicLog(t *testing.T) {
cfg, err := config.MloggerConfigFromLoggerConfig(logSettings, nil, config.GetLogFileLocation)
require.NoError(t, err)
err = logger.ConfigureTargets(cfg)
err = logger.ConfigureTargets(cfg, nil)
require.NoError(t, err)
logger.LockConfiguration()