Merge pull request #16200 from backstage/rugvip/nometa
backend-plugin-api: inlined LogMeta type
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import { Config } from '@backstage/config';
|
||||
import { Handler } from 'express';
|
||||
import { IdentityApi } from '@backstage/plugin-auth-node';
|
||||
import { JsonObject } from '@backstage/types';
|
||||
import { JsonValue } from '@backstage/types';
|
||||
import { Knex } from 'knex';
|
||||
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
|
||||
@@ -311,22 +312,17 @@ export interface LifecycleServiceShutdownOptions {
|
||||
// @public
|
||||
export interface LoggerService {
|
||||
// (undocumented)
|
||||
child(meta: LogMeta): LoggerService;
|
||||
child(meta: JsonObject): LoggerService;
|
||||
// (undocumented)
|
||||
debug(message: string, meta?: Error | LogMeta): void;
|
||||
debug(message: string, meta?: Error | JsonObject): void;
|
||||
// (undocumented)
|
||||
error(message: string, meta?: Error | LogMeta): void;
|
||||
error(message: string, meta?: Error | JsonObject): void;
|
||||
// (undocumented)
|
||||
info(message: string, meta?: Error | LogMeta): void;
|
||||
info(message: string, meta?: Error | JsonObject): void;
|
||||
// (undocumented)
|
||||
warn(message: string, meta?: Error | LogMeta): void;
|
||||
warn(message: string, meta?: Error | JsonObject): void;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export type LogMeta = {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export interface PermissionsService extends PermissionEvaluator {}
|
||||
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export type LogMeta = { [name: string]: unknown };
|
||||
import { JsonObject } from '@backstage/types';
|
||||
|
||||
/**
|
||||
* A service that provides a logging facility.
|
||||
@@ -25,10 +22,10 @@ export type LogMeta = { [name: string]: unknown };
|
||||
* @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 | JsonObject): void;
|
||||
warn(message: string, meta?: Error | JsonObject): void;
|
||||
info(message: string, meta?: Error | JsonObject): void;
|
||||
debug(message: string, meta?: Error | JsonObject): void;
|
||||
|
||||
child(meta: LogMeta): LoggerService;
|
||||
child(meta: JsonObject): 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