java - Logback - Print out method name that called the log method - Stack Overflow
I think you're looking for the %M
pattern. See the Logback docs for all patterns that you coulpd use. Note, however, that these docs also say:
Generating the method name is not particularly fast. Thus, its use should be avoided unless execution speed is not an issue.
Read full article from java - Logback - Print out method name that called the log method - Stack Overflow
No comments:
Post a Comment