[logback-user] show the line number and method name when using logback with grails

ceki ceki at qos.ch
Wed May 8 12:49:15 CEST 2013


I am fully aware that the stack trace is not the problem. I asking for a 
stack trace in order to help me identify it.

On 08.05.2013 12:43, Meni Lubetkin wrote:
> the problem is not in the stackTrace - it's general to all log levels
> when you want to log info/warn/error and to show the line number/ method
> that was fire this log
>
>
> On Wed, May 8, 2013 at 1:17 PM, ceki <ceki at qos.ch <mailto:ceki at qos.ch>>
> wrote:
>
>
>     BTW, the output generated by following one-liner would be sufficient:
>
>        new Exception("test").__printStackTrace();
>
>
>     On 08.05.2013 11:10, ceki wrote:
>
>         Hi Menu,
>
>         Thank you for your post.
>
>         As you already know, a recent version of logback corrected a bug
>         with
>         caller extraction when running under groovy. Moreover, reports from
>         the field indicate that the aforementioned bug fix solves the
>         problem
>         at hand. There must be something else going on.
>
>         Could you please post a stack trace generated from a location where
>         logback caller extraction does not work correctly? It can be any
>         place
>         where line number extraction fails.
>
>         Best,
>
>         On 08.05.2013 10:59, Meni Lubetkin wrote:
>
>             i'm using the logback plugin with grails 2.2.1 but it
>             doesn't show the
>             method or the class name. i defined the pattern using the
>             logback
>             reference but it not showing the line number or method name
>             - it shows
>             -1 all the time
>


-- 
Ceki
65% of statistics are made up on the spot


More information about the Logback-user mailing list