cozy-games/packages/utils/logger/logger.js
Ayo 969ebba067 chore: restructure to new cozy-games monorepo
Reviewed-on: https://git.ayo.run/ayo/cozy-games/pulls/1
Co-authored-by: Ayo <ayo@ayco.io>
Co-committed-by: Ayo <ayo@ayco.io>
2026-07-03 13:53:13 +00:00

13 lines
No EOL
337 B
JavaScript

export class LoggerService {
debug(message, data) {
if (typeof message === 'string') {
if (data) {
console.log(message, data)
} else {
console.log(message)
}
} else {
console.warn(`LoggerService.debug expects a string as first parameter but got a ${typeof message}`, message)
}
}
}