pino-arborsculpture
pino-arborsculpture copied to clipboard
🌲 Change Pino log levels in a running process
Hi, i try to get this to work but the loglevels seems to remain. The following code is just a test and createLogger creates a child logger. Tried with mainlogger...
This function does not automatically close the file if passed as a fd.
What about to use file watcher [chokidar](https://github.com/paulmillr/chokidar) instead of poll interval?
const defaultOptions = { path: os.tmpdir() + 'aborsculpt.json', interval: 60000, loggers: [] path gets '/tmpaborsculpt.json' and I think you want '/tmp/aborsculpt.json'