first commit! 🎉
This commit is contained in:
commit
c35c18bbbc
19 changed files with 1046 additions and 0 deletions
13
common/log.js
Normal file
13
common/log.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
export default class Log {
|
||||
static info(message) {
|
||||
console.log('[' + new Date().toISOString() + '] ' + message);
|
||||
}
|
||||
|
||||
static warn(message) {
|
||||
console.warn('[' + new Date().toISOString() + '] WARN: ' + message);
|
||||
}
|
||||
|
||||
static error(message) {
|
||||
console.error('[' + new Date().toISOString() + '] FATAL: ' + message);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue