Loki, a storage engine, provides a RESTful API to store and read logs. Let’s push a log from a Java app.
Logging Best Practices: MDC, Ingestion, and Scale
Where should you add logs in a method? Should you log in this method? If so what should you include in the log? How to phrase the message?
Almost all Java developers are familiar with logging frameworks like Log4j and the facade SLF4J, but not the System.Logger that has been available since java 9. Let’s learn about the standard.