In my log entries, I would like to write the name of the function in which the log method was called.
This is automatic to filter log entries by function name. Is it possible? With any libraries? Any extensions with existing libraries?
In other words, is it possible to extract the name of the scala function that is currently executing at runtime?
Secondary question: I understand that this may be far-fetched, but ideally, the closest private named function containing the registration call is preferred over the actual anonymous function that scala generates the critical name. The latter would be difficult to read from magazines.
source share