Hi Josh,

By setting the hostname, server name, etc on the AppServerCategoryFactory,
you automatically have them set on the Category instances created by the
factory.  The getter/setter methods on the AppServerCategory class are only
there for special override purposes.  I've never used them myself.  In
fact, in my code, all references to AppServerCategory instances are of type
Category.  So my initialization code looks something like this at program
start-up:

   AppServerCategoryFactory factory =
       new AppServerCategoryFactory("My Server", null, null);
   AppServerCategory.setFactory( factory );

   //  Run some configurator here.

   //  Then later in code where you need a reference to a
   //  category.

   Category myCat = AppServerCategory.getInstance("my.cat");

The instance of myCat will automatically be populated with the hostname and
server name set on the AppServerCategoryFactory.

There is more information about this in a "get-acquainted" doc at

  jakarta.apache.org/log4j/deepExtension.html

If any of it is unclear, then let me know so that I can change it.  I
appreciate your feedback.

Cheers,
- Paul

Paul Glezen
IT Specialist
WebSphere Engagement Team
Tel: 818 539 3321
[EMAIL PROTECTED]


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

Reply via email to