Awesome! Thanks!
J
Posts made by jfstgermain
-
How is the winston logger accessible?
The documentation is doing a great job at describing how to configure winston for logging but I can't seem to find information on how to access the logger instance, especially in scripts. I see
req.logger
andreq.reporter.logger
in some repo code but this won't work. I tried adding the logger to the global scope, but theglobal
variable is not exposed in scripts. Please enlighten me, also adding this information to the docs would be greatly helpful.