Added duplicate remover ( #5 ), saving subjects without year, file append now sync, minor logging improvements

This commit is contained in:
MrFry 2020-03-26 14:33:52 +01:00
parent be34113969
commit e6db0f9175
4 changed files with 284 additions and 8 deletions

View file

@ -29,7 +29,8 @@ module.exports = {
LogStat: LogStat,
Load: Load,
logHashed: logHashed,
hr: hr
hr: hr,
C: C
}
const DELIM = C('green') + '|' + C()
@ -82,6 +83,7 @@ function DebugLog (msg, name, lvl) {
s = header + msg
} else {
Log(header + 'OBJECT:', 'yellow')
s = msg
}
Log(s, 'yellow')
}
@ -91,7 +93,7 @@ function Log (s, c) {
let log = s
if (typeof s !== 'object') {
let dl = DELIM + C(c)
log = C(c) + GetDateString() + dl + s
log = C(c) + GetDateString() + dl + s + C()
}
console.log(log)