Logging is a key part of being able to understand Microservices and diagnose issues. Consolidating log statements and events and being able to query and visualise them is an extremely useful tool.
When running the Fabric8 Microservices Platform we recommend running the Logging Microservices which runs Elasticsearch for the back end storage and Kibana as the front end and fluentd as the collector.
As a Microservice developer, you get logging as a service for free with the Logging Microservices, though its recommended that you:
-
write logs to standard output rather than to files on disk
-
ideally use JSON output so thats its easy to automically parse it