2833 shaares
5 private links
5 private links
simply log everything to a logger instance for their module name. This makes it easy for the application to route log messages of different modules to different places, if necessary.
Applications then have several options to configure logging. In a modern infrastructure, though, following best practices simplifies this a great deal. Unless specifically needed, simply logging to stdout/stderr and letting system or your container handle log messages is sufficient and the best approach.