1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Change childLogger to prefixedLogger

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-08-30 11:23:35 -04:00
parent a52ad35e40
commit 83ae428178
2 changed files with 5 additions and 5 deletions

View File

@ -6,8 +6,8 @@ import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import type { Logger } from "../logger";
import loggerInjectable from "../logger.injectable";
const childLoggerInjectable = getInjectable({
id: "child-logger",
const prefixedLoggerInjectable = getInjectable({
id: "prefixed-logger",
instantiate: (di, prefix): Logger => {
const logger = di.inject(loggerInjectable);
@ -34,4 +34,4 @@ const childLoggerInjectable = getInjectable({
}),
});
export default childLoggerInjectable;
export default prefixedLoggerInjectable;

View File

@ -3,11 +3,11 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import childLoggerInjectable from "../../../common/logger/child-logger.injectable";
import prefixedLoggerInjectable from "../../../common/logger/prefixed-logger.injectable";
const kubeconfigSyncLoggerInjectable = getInjectable({
id: "kubeconfig-sync-logger",
instantiate: (di) => di.inject(childLoggerInjectable, "KUBECONFIG-SYNC"),
instantiate: (di) => di.inject(prefixedLoggerInjectable, "KUBECONFIG-SYNC"),
});
export default kubeconfigSyncLoggerInjectable;