j_kathiresan
2015-04-04 10:15:43 UTC
The mail groovy file (MainApp.groovy) has the following code which invokes
sample.groovy
script = new GroovyShell(binding).parse(new File("sample.groovy))
script.run()
Log4j.xml has CONSOLE appender with conversion pattern %d{ABSOLUTE} %-5p
[%c{1}] %m%n
even by changing to different patterns the line number of the groovy file
sample.groovy is not being printed during execution of methods in
sample.groovy.
can someone please help me on how to print the lines which is being executed
in sample.groovy?
instead of
12:40:57,255 DEBUG [sample] Request:
not it is being printed as
12:40:57,255 DEBUG [MainApp] Request:
so it is being difficult to debug or to know which line is being executed.
Thanks.
--
View this message in context: http://groovy.329449.n5.nabble.com/Print-the-exact-line-being-executed-in-groovy-GroovyShell-tp5723364.html
Sent from the groovy - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
sample.groovy
script = new GroovyShell(binding).parse(new File("sample.groovy))
script.run()
Log4j.xml has CONSOLE appender with conversion pattern %d{ABSOLUTE} %-5p
[%c{1}] %m%n
even by changing to different patterns the line number of the groovy file
sample.groovy is not being printed during execution of methods in
sample.groovy.
can someone please help me on how to print the lines which is being executed
in sample.groovy?
instead of
12:40:57,255 DEBUG [sample] Request:
not it is being printed as
12:40:57,255 DEBUG [MainApp] Request:
so it is being difficult to debug or to know which line is being executed.
Thanks.
--
View this message in context: http://groovy.329449.n5.nabble.com/Print-the-exact-line-being-executed-in-groovy-GroovyShell-tp5723364.html
Sent from the groovy - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email