mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Add winston formatting support for error causes Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix failing to run built version - Finally make logger fully injectable - Simplify startMainApplication to only have runMany(Sync) invocations to fix time of use bugs related to logger Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove legacy type enforced ipc to fix tests Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix type error Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
21 lines
748 B
TypeScript
21 lines
748 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import { asLegacyGlobalForExtensionApi } from "../extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
|
import loggerInjectable from "./logger.injectable";
|
|
|
|
export interface Logger {
|
|
info: (message: string, ...args: any) => void;
|
|
error: (message: string, ...args: any) => void;
|
|
debug: (message: string, ...args: any) => void;
|
|
warn: (message: string, ...args: any) => void;
|
|
silly: (message: string, ...args: any) => void;
|
|
}
|
|
|
|
/**
|
|
* @deprecated use `di.inject(loggerInjectable)` instead
|
|
*/
|
|
export default asLegacyGlobalForExtensionApi(loggerInjectable);
|