using OzoneLogger
Marcelo Rezende Módolo <[email protected]> Mon, 10 Jan 2005 10:39:18 -0200
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <000601c4f711$68721c30$0501010a@lua> |
Hi,
I need to log information when testing ozone apps, I did the folowing in my testing:
public class KeywordImpl extends OzoneObject implements Keyword {
static final long serialVersionUID = 1L;
/**
* log4j logger
*/
private static final String parentLogger =
OzoneLogger.getLogger(OzoneLoggerFactory.class).getName();
private static final Logger logger = OzoneLogger.getLogger(parentLogger + KeywordImpl.class.getName());
public void onCreate() {
super.onCreate();
logger.info("KeywordImpl#onCreate()");
}
}
Is this the right way for using OzoneLogger?
thanks a lot
marcelo módolo