chore: change most of plugins to use LoggerService
quite a big PR for this but the changes are pretty stright forward. hopefully gets merged before most of these plugins move to the community repository. Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -13,7 +13,7 @@ import { ExtensionPoint } from '@backstage/backend-plugin-api';
|
||||
import { FactSchema } from '@backstage/plugin-tech-insights-common';
|
||||
import { HumanDuration } from '@backstage/types';
|
||||
import { JsonValue } from '@backstage/types';
|
||||
import { Logger } from 'winston';
|
||||
import { LoggerService } from '@backstage/backend-plugin-api';
|
||||
import { PluginEndpointDiscovery } from '@backstage/backend-common';
|
||||
import { TokenManager } from '@backstage/backend-common';
|
||||
|
||||
@@ -65,7 +65,7 @@ export interface FactRetriever {
|
||||
export type FactRetrieverContext = {
|
||||
config: Config;
|
||||
discovery: PluginEndpointDiscovery;
|
||||
logger: Logger;
|
||||
logger: LoggerService;
|
||||
tokenManager: TokenManager;
|
||||
auth: AuthService;
|
||||
entityFilter?:
|
||||
|
||||
@@ -41,8 +41,7 @@
|
||||
"@backstage/plugin-tech-insights-common": "workspace:^",
|
||||
"@backstage/types": "workspace:^",
|
||||
"@types/luxon": "^3.0.0",
|
||||
"luxon": "^3.0.0",
|
||||
"winston": "^3.2.1"
|
||||
"luxon": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^"
|
||||
|
||||
@@ -21,8 +21,7 @@ import {
|
||||
TokenManager,
|
||||
} from '@backstage/backend-common';
|
||||
import { FactSchema } from '@backstage/plugin-tech-insights-common';
|
||||
import { Logger } from 'winston';
|
||||
import { AuthService } from '@backstage/backend-plugin-api';
|
||||
import { AuthService, LoggerService } from '@backstage/backend-plugin-api';
|
||||
|
||||
/**
|
||||
* A container for facts. The shape of the fact records needs to correspond to the FactSchema with same `ref` value.
|
||||
@@ -91,7 +90,7 @@ export type FlatTechInsightFact = TechInsightFact & {
|
||||
export type FactRetrieverContext = {
|
||||
config: Config;
|
||||
discovery: PluginEndpointDiscovery;
|
||||
logger: Logger;
|
||||
logger: LoggerService;
|
||||
tokenManager: TokenManager;
|
||||
auth: AuthService;
|
||||
entityFilter?:
|
||||
|
||||
Reference in New Issue
Block a user