dev@glassfish.java.net

[v3] Preferred technique for getting a relevant Logger

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Sun, 22 Jun 2008 15:53:57 -0500

In v2 there were a variety of loggers, specific to various areas of the
app server, available via the LogDomains.getLogger method.

In v3 I know a service can use @Inject Logger logger; to get a logger.
Based on a quick experiment, that logger's name is "global."

For classes that are new in v3, what's the preferred way to get the
appropriate logger? Even if LogDomains.getLogger maintains backward
compatibility, it that how new classes should get a logger?

- Tim