mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added logging to accesible folder, and made all questions page more readable
This commit is contained in:
parent
ccc7f31e3a
commit
59640eaddf
16 changed files with 149 additions and 15 deletions
4
logger.js
Executable file → Normal file
4
logger.js
Executable file → Normal 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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue