Re:Show HN: Decorate Java stack traces with source code snip...
by javanonymous on Friday October 06, 2023 @07:07AM
(#37789189)
If I understand your use case, most loggers (like Logback) have the possiblity to automatically include the name of the method that called the log-statement.
Logback even supports including the call chain in the output, so you could include the parent method, grand parent method etc. This probably uses reflection, so it could have a negative impact for applications that need a high performance.
Logback even supports including the call chain in the output, so you could include the parent method, grand parent method etc. This probably uses reflection, so it could have a negative impact for applications that need a high performance.
https://logback.qos.ch/manual/layouts.html