webstreamr/src/utils/log.ts
WebStreamr 3a87ddb9f0
refactor: make resolution and size optional and extract resolution helper
This should come in handy later when adding more providers
2025-05-08 18:39:23 +00:00

11 lines
347 B
TypeScript

export const logError = (message: string) => {
console.error(`${new Date().toISOString()}, Error: ${message}`);
};
export const logWarn = (message: string) => {
console.warn(`${new Date().toISOString()}, Warn: ${message}`);
};
export const logInfo = (message: string) => {
console.info(`${new Date().toISOString()}, Info: ${message}`);
};