(BROKEN) database loading and ascii art done, broken access to database subclass

This commit is contained in:
plane000
2018-10-16 20:42:46 +01:00
parent 0026048fc6
commit 66bc71138b
9 changed files with 1060 additions and 22 deletions

View File

@@ -13,6 +13,17 @@ module.exports = class Logger {
fs.writeFileSync(logPath, '');
}
fs.appendFileSync(logPath, '[SYSTEM STARTING UP] \n');
console.log(colours.rainbow(
'\t _ _ _ \n' +
'\t | | | | | \n' +
'\t _ __ _ _| | |_ __ | |_ _ __ \n' +
'\t| \'_ \\| | | | | | \'_ \\| __| \'__| \n' +
'\t| | | | |_| | | | |_) | |_| | \n' +
'\t|_| |_|\\__,_|_|_| .__/ \\__|_| \n' +
'\t | | \n' +
'\t |_| \n'));
}
static SetLevel(level) {
@@ -28,6 +39,14 @@ module.exports = class Logger {
static get INFO_LOGS() {return 2;}
static get WARN_LOGS() {return 3;}
static database(message) {
if (LogLevel > 0) return;
let d = new Date();
fs.appendFileSync(logPath, `[${d.toLocaleString()}] [${Dialect}] ${message} \n`);
console.log('[' + d.toLocaleString() + '] ['
+ colours.magenta(Dialect) + '] ' + message);
}
static middleware(message) {
if (LogLevel > 0) return;
let d = new Date();