added `LOG_LEVEL` environment var support

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

@ -76,7 +76,7 @@ function getDatedDirname() {
// Set up pathing & the logger
const path = (...paths) => Path.join(__dirname, ...paths);
const logger = new TLog({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
level: process.env.LOG_LEVEL || (process.env.NODE_ENV === 'production' ? 'info' : 'debug'),
timestamp: {
enabled: true,
colour: 'grey',

Loading…
Cancel
Save