Added logging to accesible folder, and made all questions page more readable

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-02-27 18:58:29 +01:00
parent ccc7f31e3a
commit 59640eaddf
16 changed files with 149 additions and 15 deletions

4
logger.js Executable file → Normal file
View file

@ -26,6 +26,8 @@ module.exports = {
var utils = require('./utils.js');
const nlogFile = "stats/nlogs";
const varLogFile = "/var/log/qminingNLog";
const logFile = "/nlogs/nlogs";
function GetDateString() {
var m = new Date();
@ -45,7 +47,9 @@ function Log(s, c, b) {
if (b)
utils.Beep();
utils.AppendToFile(GetDateString() + "> " + s, nlogFile);
utils.AppendToFile(GetDateString() + "> " + s, logFile);
}
function GetColor(c) {