create client side logger

This commit is contained in:
Ondřej Synáček 2020-07-17 20:51:09 +02:00
parent 6b7c0f8454
commit 0eda018113
1 changed files with 7 additions and 0 deletions

7
lib/static/app/logger.js Normal file
View File

@ -0,0 +1,7 @@
class Logger {
log({ message, level, service }) {
console.info(`%c${level}\n%c${service}\n${message}`, "color: blue, color: grey")
}
}
export default new Logger()