Hello !
We need to retrieve the bunyan instance in our hooks and protocols.
But, if we create another bunyan logger with the same config with rolling file option we may run into issues (trying to close the logfile during another logger writing)
This PR transforms the logger in singleton.
Coverage remained the same at 79.75% when pulling 5afda8e62921fd7c6392881a88217b48c784ff17 on camfou:single_logger_instance into 46b118c554b0a603cc531a88ff6f5842071e6c45 on anvilresearch:master.
Hello ! We need to retrieve the bunyan instance in our hooks and protocols. But, if we create another bunyan logger with the same config with rolling file option we may run into issues (trying to close the logfile during another logger writing) This PR transforms the logger in singleton.
Regards, Camille