website refactor
This commit is contained in:
@@ -12,17 +12,20 @@ import { getLeagueScoringPresetById } from './LeagueScoringPresets';
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
class SilentLogger implements Logger {
|
||||
private getTimestamp(): string {
|
||||
return new Date().toISOString();
|
||||
}
|
||||
debug(..._args: unknown[]): void {
|
||||
// console.debug(...args);
|
||||
// console.debug(`[${this.getTimestamp()}]`, ...args);
|
||||
}
|
||||
info(..._args: unknown[]): void {
|
||||
// console.info(...args);
|
||||
// console.info(`[${this.getTimestamp()}]`, ...args);
|
||||
}
|
||||
warn(..._args: unknown[]): void {
|
||||
// console.warn(...args);
|
||||
// console.warn(`[${this.getTimestamp()}]`, ...args);
|
||||
}
|
||||
error(..._args: unknown[]): void {
|
||||
// console.error(...args);
|
||||
// console.error(`[${this.getTimestamp()}]`, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user