3 ms·
The volume of logging in production systems is such is that it is impractical to act on individual exceptions. You would typically send log events to a centrali
by rodionos 10y ago
The volume of logging in production systems is such is that it is impractical to act on individual exceptions. You would typically send log events to a centralized logging service or have an agent-based code monitor logs locally for well know sequences or error codes. And that's where Java exceptions can be improved - a built-in facility to assign error codes so that downstream tools can handle exceptions based on a rule book which takes application-specific error codes into account.
- ivan_gammel 10y agoIf you don't want to use regular expressions for matching exceptions, you can simply calculate hash code of exception class name and, possibly, of it's cause and message and pass it downstream.
- cbsmith 10y agoBetter yet have monitors/counters...