Composer: logging and debugging in Java processing

Hi!

What is the easiest way for writing log entries into the Application Composer Server Log from Java?

And how can I debug my Java Processiong Code?

ThanX in advance,
Dietrich