mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-12-01 21:01:00 -05:00
42 lines
661 B
TypeScript
42 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
|
||
|
}
|
||
|
}
|