We set the line number to -1 for generated code which doesn't have a
corresponding real line in the source code.

So, you might be seeing exactly what we expect or it's possible we have
missed some case. Can you elaborate further on how you are using the
logging?

Cheers, Paul.

On Tue, Aug 23, 2016 at 6:00 AM, Raviteja Lokineni <
raviteja.lokin...@gmail.com> wrote:

> Hi all,
>
> Log4j ouputs groovy class line number to be -1. Any known fix/workaround
> for this issue? I looked around a bit but found nothing. FYI, Grails team
> doesn't seem to have this issue.
>
> Log4j patern: %d{yyyy-MM-dd HH:mm:ss.SSS(XXX)} [%t] %p %c:%L - %m%n
>
> Sample output I get:
> <time> [<thread>] <LEVEL> <class>:*-1* - <message>
>
> Thanks,
> --
> *Raviteja Lokineni* | Business Intelligence Developer
> TD Ameritrade
>
> E: raviteja.lokin...@gmail.com
>
> [image: View Raviteja Lokineni's profile on LinkedIn]
> <http://in.linkedin.com/in/ravitejalokineni>
>
>

Reply via email to