It seems that in Grails or better to say Groovy, it is not possible to set the logging pattern to log line numbers, method and class names. Or you can but you would receive the line number and method name from Log4j class like:
%F:%L -≥ SLF4JLog.java:213
I've found an issue related to that which was no considered as Grails related: http://jira.grails.org/browse/GRAILS-9789
So is there any way how to log these information in Grails?
Please take a look at Grails logging - Is there any existing solution to be able to log the File + Line where the call actually occured?
So, you need to use a custom appender...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With