Updated logger

pull/29/head
tycrek 3 years ago
parent 4fae603d31
commit c591fd49a3
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

14
package-lock.json generated

@ -10,7 +10,7 @@
"license": "ISC",
"dependencies": {
"@tycrek/ass-storage-engine": "0.2.6",
"@tycrek/log": "^0.3.0",
"@tycrek/log": "^0.4.1",
"any-shell-escape": "^0.1.1",
"aws-sdk": "^2.930.0",
"check-node-version": "^4.1.0",
@ -592,9 +592,9 @@
}
},
"node_modules/@tycrek/log": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@tycrek/log/-/log-0.3.0.tgz",
"integrity": "sha512-D9ZofQLLIdza8tgeqHENsmUuLyxHLn4o+cWc5hEnn126weCQE6OVIfLsO0pqMH7vg5zw9nsIVb5eqlWsr2KAKA==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@tycrek/log/-/log-0.4.1.tgz",
"integrity": "sha512-/M63gjQ4MNoua9tn02bAv8GZTYIMa+4x9IAjVo+arSbThAFifDUWcIwI9JQQhXdUtIu73cHl/TA1MzamkeVUDQ==",
"dependencies": {
"chalk": "^4.1.1",
"luxon": "^1.27.0"
@ -3838,9 +3838,9 @@
}
},
"@tycrek/log": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@tycrek/log/-/log-0.3.0.tgz",
"integrity": "sha512-D9ZofQLLIdza8tgeqHENsmUuLyxHLn4o+cWc5hEnn126weCQE6OVIfLsO0pqMH7vg5zw9nsIVb5eqlWsr2KAKA==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@tycrek/log/-/log-0.4.1.tgz",
"integrity": "sha512-/M63gjQ4MNoua9tn02bAv8GZTYIMa+4x9IAjVo+arSbThAFifDUWcIwI9JQQhXdUtIu73cHl/TA1MzamkeVUDQ==",
"requires": {
"chalk": "^4.1.1",
"luxon": "^1.27.0"

@ -35,7 +35,7 @@
},
"dependencies": {
"@tycrek/ass-storage-engine": "0.2.6",
"@tycrek/log": "^0.3.0",
"@tycrek/log": "^0.4.1",
"any-shell-escape": "^0.1.1",
"aws-sdk": "^2.930.0",
"check-node-version": "^4.1.0",

@ -77,9 +77,6 @@ function getDatedDirname() {
const path = (...paths) => Path.join(__dirname, ...paths);
const logger = new TLog({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
plugins: {
express: true
},
timestamp: {
enabled: true,
colour: 'grey',
@ -88,7 +85,9 @@ const logger = new TLog({
});
// Enable the Express logger
logger.enable.express().debug('Plugin enabled', 'Express middleware');
logger
.enable.process({ uncaughtException: false }).debug('Plugin enabled', 'Process')
.enable.express().debug('Plugin enabled', 'Express');
const idModes = {
zws: 'zws', // Zero-width spaces (see: https://zws.im/)

Loading…
Cancel
Save