backend-plugin-api: inlined LogMeta type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -311,22 +311,17 @@ export interface LifecycleServiceShutdownOptions {
|
||||
// @public
|
||||
export interface LoggerService {
|
||||
// (undocumented)
|
||||
child(meta: LogMeta): LoggerService;
|
||||
child(meta: Record<string, unknown>): LoggerService;
|
||||
// (undocumented)
|
||||
debug(message: string, meta?: Error | LogMeta): void;
|
||||
debug(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
// (undocumented)
|
||||
error(message: string, meta?: Error | LogMeta): void;
|
||||
error(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
// (undocumented)
|
||||
info(message: string, meta?: Error | LogMeta): void;
|
||||
info(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
// (undocumented)
|
||||
warn(message: string, meta?: Error | LogMeta): void;
|
||||
warn(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export type LogMeta = {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export interface PermissionsService extends PermissionEvaluator {}
|
||||
|
||||
|
||||
@@ -14,21 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export type LogMeta = { [name: string]: unknown };
|
||||
|
||||
/**
|
||||
* A service that provides a logging facility.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface LoggerService {
|
||||
error(message: string, meta?: Error | LogMeta): void;
|
||||
warn(message: string, meta?: Error | LogMeta): void;
|
||||
info(message: string, meta?: Error | LogMeta): void;
|
||||
debug(message: string, meta?: Error | LogMeta): void;
|
||||
error(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
warn(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
info(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
debug(message: string, meta?: Error | Record<string, unknown>): void;
|
||||
|
||||
child(meta: LogMeta): LoggerService;
|
||||
child(meta: Record<string, unknown>): LoggerService;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export type {
|
||||
LifecycleServiceShutdownHook,
|
||||
LifecycleServiceShutdownOptions,
|
||||
} from './LifecycleService';
|
||||
export type { LoggerService, LogMeta } from './LoggerService';
|
||||
export type { LoggerService } from './LoggerService';
|
||||
export type { PermissionsService } from './PermissionsService';
|
||||
export type { PluginMetadataService } from './PluginMetadataService';
|
||||
export type { RootHttpRouterService } from './RootHttpRouterService';
|
||||
|
||||
Reference in New Issue
Block a user