mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
8 lines
352 B
TypeScript
8 lines
352 B
TypeScript
const prefix = `[koel]`
|
|
|
|
export const logger = {
|
|
warn: (m, ...args: any[]) => process.env.NODE_ENV === 'development' && console.warn(prefix, m, ...args),
|
|
log: (m, ...args: any[]) => console.log(prefix, m, ...args),
|
|
error: (m, ...args: any[]) => console.error(prefix, m, ...args),
|
|
info: (m, ...args: any[]) => console.info(prefix, m, ...args)
|
|
}
|