mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
28 lines
647 B
TypeScript
28 lines
647 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import type winston from "winston";
|
|
import { getGlobalOverride } from "@k8slens/test-utils";
|
|
import { noop } from "@k8slens/utilities";
|
|
import { winstonLoggerInjectable } from "./winston-logger.injectable";
|
|
|
|
export default getGlobalOverride(
|
|
winstonLoggerInjectable,
|
|
() =>
|
|
({
|
|
log: noop,
|
|
add: noop,
|
|
remove: noop,
|
|
clear: noop,
|
|
close: noop,
|
|
|
|
warn: noop,
|
|
debug: noop,
|
|
error: noop,
|
|
info: noop,
|
|
silly: noop,
|
|
} as winston.Logger),
|
|
);
|