mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
32 lines
602 B
TypeScript
32 lines
602 B
TypeScript
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { LoggerType } from '../types/Logging.std.js';
|
|
|
|
/* eslint-disable no-console */
|
|
export const consoleLogger: LoggerType = {
|
|
fatal(...args) {
|
|
console.error(...args);
|
|
},
|
|
error(...args) {
|
|
console.error(...args);
|
|
},
|
|
warn(...args) {
|
|
console.warn(...args);
|
|
},
|
|
info(...args) {
|
|
console.info(...args);
|
|
},
|
|
debug(...args) {
|
|
console.debug(...args);
|
|
},
|
|
trace(...args) {
|
|
console.log(...args);
|
|
},
|
|
child() {
|
|
return consoleLogger;
|
|
},
|
|
};
|
|
|
|
/* eslint-enable no-console */
|