Opensearch dashboards.loggingservicesetup.configure
Home > opensearch-dashboards > LoggingServiceSetup > configure
LoggingServiceSetup.configure() method
Customizes the logging config for the plugin's context.
Signature:
configure(config$: Observable<LoggerContextConfigInput>): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| config$ | Observable<LoggerContextConfigInput> |
Returns:
void
Remarks
Assumes that that the context property of the individual logger items emitted by config$ are relative to the plugin's logging context (defaults to plugins.<plugin_id>).
Example
Customize the configuration for the plugins.data.search context.
core.logging.configure(
of({
appenders: new Map(),
loggers: [{ context: 'search', appenders: ['default'] }]
})
)