On 9/29/05, Gilles Scokart <[EMAIL PROTECTED]> wrote:
> Thanks, but what are the guidelines on when to log at which level ?  I guess
> it's a good idea that all plugins follow the same guidelines.  What is the
> best practice for that ?

This should all be information for the user: ERROR for things that
went wrong (generally this will result in a failure/exception
instead), WARN for things that need attention but not a problem, and
INFO for general progress (this won't be displayed if we have a quiet
mode).

DEBUG for verbose information to help them diagnose a problem.

>
> And what if our mojo call external code that is not (and should not be)
> aware of running into a maven plugin ?

In theory it is possible to configure log4j and commons-logging from
the plexus container that Maven runs in. That is probably what would
need to happen but I'd have to look at a specific case to see how this
plays out.

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to