Final logger format maybe

This commit is contained in:
Jiiks 2016-11-04 07:11:22 +02:00
parent 821a9f8749
commit 0b614022ad
2 changed files with 17 additions and 7 deletions

12
v2/dist/js/main.js vendored
View File

@ -63,19 +63,25 @@
{
key: 'log',
value: function log(msg) {
console.log('%c[BD] %cINF >> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:green; font-weight:700', '');
console.log('%c[BD] %c>> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:#000; font-weight:700', '');
}
},
{
key: 'info',
value: function info(msg) {
console.info('%c[BD] %c>> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:blue; font-weight:700', '');
}
},
{
key: 'warn',
value: function warn(msg) {
console.log('%c[BD] %cWRN >> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:orange; font-weight:700', '');
console.warn('%c[BD] %c>> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:orange; font-weight:700', '');
}
},
{
key: 'err',
value: function err(msg) {
console.log('%c[BD] %cERR >> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:red; font-weight:700', '');
console.error('%c[BD] %c>> %c' + msg, 'color:#3e82e5; font-weight:700', 'color:red; font-weight:700', '');
}
},
{

View File

@ -1,7 +1,7 @@
/* BetterDiscordApp Client Utilities
* Version: 2:1.0
* Author: Jiiks | https://jiiks.net
* Date: 31/10/2016
* Date: 04/11/2016
* Last Update: 31/10/2016
* Github: https://github.com/Jiiks/BetterDiscordApp
* Git: https://github.com/Jiiks/BetterDiscordApp.git
@ -18,15 +18,19 @@ define(() => {
}
log(msg) {
console.log(`%c[BD] %cINF >> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:green; font-weight:700', '')
console.log(`%c[BD] %c>> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:#000; font-weight:700', '')
}
info(msg) {
console.info(`%c[BD] %c>> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:blue; font-weight:700', '')
}
warn(msg) {
console.log(`%c[BD] %cWRN >> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:orange; font-weight:700', '')
console.warn(`%c[BD] %c>> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:orange; font-weight:700', '')
}
err(msg) {
console.log(`%c[BD] %cERR >> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:red; font-weight:700', '')
console.error(`%c[BD] %c>> %c${msg}`, 'color:#3e82e5; font-weight:700', 'color:red; font-weight:700', '')
}
get dateString() {