« Return to Thread: writing to ant's logger from external type

writing to ant's logger from external type

by ruel loehr :: Rate this Message:

Reply to Author | View in Thread

I've written a task which uses a custom data type.   I'd like to be able to write log messages from within that type using ANT's logging mechanism.   If I use that type independently, I'd like to just write to System.out.

Does anyone know of a way to pass ants logger to an external type such that I could do something like this:


If (logger !=null)
            Logger.LogMessage("My message");
Else
            System.out.println("My message");


Thanks!
R Loehr

 « Return to Thread: writing to ant's logger from external type

LightInTheBox - Buy quality products at wholesale price!