mc-publish/src/utils/logging/null-logger.ts
2023-05-16 19:35:58 +03:00

41 lines
661 B
TypeScript

import { Logger } from "./logger";
/**
* Null logger implementation, used for discarding all log messages.
*/
export class NullLogger implements Logger {
/**
* @inheritdoc
*/
fatal(_message: string | Error): void {
// NOP
}
/**
* @inheritdoc
*/
error(_message: string | Error): void {
// NOP
}
/**
* @inheritdoc
*/
warn(_message: string | Error): void {
// NOP
}
/**
* @inheritdoc
*/
info(_message: string | Error): void {
// NOP
}
/**
* @inheritdoc
*/
debug(_message: string | Error): void {
// NOP
}
}