groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: Reporting groovy line number in log4j2
Date Mon, 22 Aug 2016 20:40:27 GMT
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.lokineni@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.lokineni@gmail.com
>
> [image: View Raviteja Lokineni's profile on LinkedIn]
> <http://in.linkedin.com/in/ravitejalokineni>
>
>

Mime
View raw message