RE: Using Log4j With Orion

2001-02-19 Thread Yves Bossel

We also use log4j.
A servlet makes the initialization, by reading the configuration file.

It is has been of great help:
1. It avoids tons of System.out
2. When we have a problem we just turn on debugging on the desired category.
This has proven very usefull when refactoring classes.

Hint: use log4j with JSP, it may save you a lot of debugging time. We use
one category per page i.e. "jsp.dir.dir.page"


Could anyone give me some clues about NDC, i.e. how to use it, what is the
value of it, and its cost ?

May I use directly cat.debug("message") or have I to use JMS ... I heard
that the app server is not obliged to open a stream ?


Thanks,


Yves Bossel,
Programmer - Neoris.com




RE: Using Log4j With Orion

2001-02-19 Thread Torgeir . Lerkerod

Hi,

cat.debug("message")and friends works on most appservers. What the
spesification says is that you can't open a file input/outputstream directly
from an ejb and this is because of portability. So output to screen should
always be possible from an ejb.

And this is what log4j does its realy just a System.out whit dynamic filters
on it.

Regards,
Torgeir

-Original Message-
From: Yves Bossel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 12:18 PM
To: Orion-Interest
Subject: RE: Using Log4j With Orion


We also use log4j.
A servlet makes the initialization, by reading the configuration file.

It is has been of great help:
1. It avoids tons of System.out
2. When we have a problem we just turn on debugging on the desired category.
This has proven very usefull when refactoring classes.

Hint: use log4j with JSP, it may save you a lot of debugging time. We use
one category per page i.e. "jsp.dir.dir.page"


Could anyone give me some clues about NDC, i.e. how to use it, what is the
value of it, and its cost ?

May I use directly cat.debug("message") or have I to use JMS ... I heard
that the app server is not obliged to open a stream ?


Thanks,


Yves Bossel,
Programmer - Neoris.com




Re: Using Log4j With Orion

2001-02-17 Thread Steven Gardell

And could someone provide a valid pointer to Log4j proper?
Can't seem to get to it at IBM's web site.
Thanks

Steven Gardell
Iperia, Inc.
- Original Message -
From: Hee Meng, Poh [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 8:50 PM
Subject: Using Log4j With Orion


 Hi,

 Anyone uses Log4j with Orion? Think of providing logging facilites for
both
 web and ejb components.
 What's the good way to specify a PropertyConfigurator?

 Thanks for any info.

 Regards








Re: Using Log4j With Orion

2001-02-17 Thread Joseph B. Ottinger

http://jakarta.apache.org/log4j/

On Sat, 17 Feb 2001, Steven Gardell wrote:

 And could someone provide a valid pointer to Log4j proper?
 Can't seem to get to it at IBM's web site.
 Thanks

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant





RE: Using Log4j With Orion

2001-02-16 Thread Torgeir . Lerkerod

Hi,

We have done this. By writing a tree part solution. We wrote a little
servlet that sets up default things in a singelton class that handels all
log calls through it. We than also wrote a jsp page to set the debuglevels
for classes. As you know log4j defaults to info. turning on debug and
warnings ar done trough this page. It works great.

On the client side we use the same singeltonclass in the clients and have
writen a little bean that we uses to turn on and of debuging dynamicly on
the client.

Regards,
Torgeir
---
[EMAIL PROTECTED] PB 6746 St.Olavs Plass
Telenor Mobile Comunications 0130 Oslo, Norway
Nett/IT
Office (+47) 22 78 45 88 GSM (+47) 91 83 74 30
---
[EMAIL PROTECTED]  Karenslyst All 9
Exense ASA   0213 Oslo, Norway
---
"Everything should be made as simple as possible,
 but not simpler."  - Albert Einstein



-Original Message-
From: Hee Meng, Poh [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:50 AM
To: Orion-Interest
Subject: Using Log4j With Orion


Hi,

Anyone uses Log4j with Orion? Think of providing logging facilites for both
web and ejb components.
What's the good way to specify a PropertyConfigurator?

Thanks for any info.

Regards






Re: Using Log4j With Orion

2001-02-16 Thread Arthur Copeland

yes, i use it and it works GREAT.

artie

"Hee Meng, Poh" wrote:

 Hi,

 Anyone uses Log4j with Orion? Think of providing logging facilites for both
 web and ejb components.
 What's the good way to specify a PropertyConfigurator?

 Thanks for any info.

 Regards





Re: Using Log4j With Orion

2001-02-16 Thread Arthur Copeland

yes, i use it and it works GREAT.

artie

"Hee Meng, Poh" wrote:

 Hi,

 Anyone uses Log4j with Orion? Think of providing logging facilites for both
 web and ejb components.
 What's the good way to specify a PropertyConfigurator?

 Thanks for any info.

 Regards





Re: Using Log4j With Orion

2001-02-15 Thread Armin Rauch

"Hee Meng, Poh" wrote:
 
 Hi,
 
 Anyone uses Log4j with Orion? Think of providing logging facilites for both
 web and ejb components.
 What's the good way to specify a PropertyConfigurator?
 
 Thanks for any info.
 
 Regards
I am using both tools. You have to remember that EJB are kind of
unwilling to giv you access IO Streams. In out case, we use JMS for
logging. We read the Property file as a resource with the ClassLoader
and let the PropertyConfigurator parse the Properties directly.
Regards
Armin Rauch