debugging Groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

debugging Groovy

Vince Clark
I'm trying to use methods from the Debug class to output information to log files. That is how to do it according to this doc.
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)

Also looked at some examples in other groovy files. But nothing seems to be written to any log files.


Vince Clark
[hidden email]
(303) 493-6723
Reply | Threaded
Open this post in threaded view
|

Re: debugging Groovy

Vince Clark
Never mind. Helps if you put the log message in the right groovy file.

Vince Clark
[hidden email]
(303) 493-6723

----- Original Message -----
From: "Vince Clark" <[hidden email]>
To: "user" <[hidden email]>
Sent: Tuesday, June 2, 2009 5:30:40 PM GMT -07:00 US/Canada Mountain
Subject: debugging Groovy

I'm trying to use methods from the Debug class to output information to log files. That is how to do it according to this doc.
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)

Also looked at some examples in other groovy files. But nothing seems to be written to any log files.


Vince Clark
[hidden email]
(303) 493-6723
Reply | Threaded
Open this post in threaded view
|

Re: debugging Groovy

Ashish Vijaywargiya
In reply to this post by Vince Clark
Hello Vince,

To understand the concept of sending Log message to log files you may need
to read the details available on Log4J project (
http://logging.apache.org/log4j/1.2/index.html).
Then open the Debug.java file and see what is written in that file and try
to understand what is going on, I am sure you will get your answer.
Another files of your interest are debug.properties & log4j.xml.

If you don't get the answer of your question then shoot email on mailing
list. Person looking your email first on this subject will help you out.
It can be me or someone else as it depends on timezone ;o)

Thanks!
--
Ashish

On Wed, Jun 3, 2009 at 5:00 AM, Vince Clark <[hidden email]> wrote:

> I'm trying to use methods from the Debug class to output information to log
> files. That is how to do it according to this doc.
>
> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World..<http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28Hello+World..>
> .)
>
> Also looked at some examples in other groovy files. But nothing seems to be
> written to any log files.
>
>
> Vince Clark
> [hidden email]
> (303) 493-6723
>