Logging

Logging is the simplest approach to enable observability in an application.

Log Once Principle

The Log Once Principle

The Log Once Principle is a simple rule for logging exceptions in backend applications. The main idea is: Do not log an exception where you throw it. Log it once, later, at the final place that handles it. In Spring Boot, this place is often the GlobalExceptionHandler.
Published on
Page 1 of 1