Skip to Content
0
Former Member
Sep 28, 2005 at 12:07 PM

How to use application logger ?

44 Views

Hi,

I have created a JSPDynPage application that I've deploy ion my portal (EP6 SP13)

I want to use logger to manage it.

For this, I've read many documentation but I can not find 2 documentations which are saying the same thing...

😊

Actually:

/* I created a location in each class */

private static final Location LOCATION = Location.getLocation(MyClass.class);

/* I reference the application category */

private static final Category CATEGORY = Category.getCategory(Category.APPLICATIONS, Constants.APPLICATION_NAME);

/* And I use this as: */

CATEGORY.infoT(LOCATION, "doInitialization", "User logged in", new Object[] { m_timeManagment.getFirstName()}); /* And: */ LOCATION.infoT("doInitialization", "User started transaction", new Object[] { m_timeManagment.getFirstName()});

But I think I must do other think ...

Like for example create a log-configuration.xml file in my application folder (under "logger" repository?)

Should I reference it in the portalapps.xml ?

...

Can someone tell me exactly how to do, please ?

Thanks,

Fabien