Skip to content

Change logging.loggers config from Array to Map #69592

@joshdover

Description

@joshdover

Follow up from discussion here: #68704 (comment)

We currently expose our logging context configuration via an array format, where each logger has context key that is used to identify the logger:

loggers:
  - context: foo.bar
    level: 'info'
    appenders: 
      - file

We should change this to a Map-based format where the key is the context and the values are an object containing the level and appenders.

loggers:
  foo.bar:
    level: 'info'
    appenders: 
      - file

Elasticsearch supports this same format, so we will still be consistent with ES here. Luckily these new config keys are still experimental, so we can change these before 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:LoggingFeature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions