simple-node-logger icon indicating copy to clipboard operation
simple-node-logger copied to clipboard

It creates the file, but writes nothing...

Open tnatanael opened this issue 6 years ago • 3 comments

const { spawn } = require('child_process'); const mysql = require('mysql');

logfile_opts = { logDirectory:'logs', // NOTE: folder must exist and be writable... fileNamePattern:'pheal-<DATE>.log', dateFormat:'YYYYMMDDHHmm' } const log = require('simple-node-logger').createRollingFileLogger( logfile_opts );

log.info('test'); //It creates the file in the right folder, but writes nothing to the file...

Is there some dependency missing?

tnatanael avatar Sep 27 '18 13:09 tnatanael

Node version v10.8.0

tnatanael avatar Sep 27 '18 13:09 tnatanael

What happens if you put log.setLevel('all'); before your log.info call?

Jonathan-Eid avatar Oct 08 '18 05:10 Jonathan-Eid

Nothing at all...

tnatanael avatar Oct 08 '18 11:10 tnatanael