Re: newbie logging question

2002-08-12 Thread David Hirst

I will try, it's not that big a deal, it was more a question out of curiosity,
there are other ways that I can distinguish where the output is coming from.

Thanks

"Shapira, Yoav" wrote:

> Howdy,
> I'm afraid I can't offer more insight ;)
>
> Does the output change if you use
> private static final Logger logger =
> Logger.getLogger(GdsBuilderEJB.class.getName());
>
> ?
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 11:29 AM
> >To: Log4J Users List
> >Subject: Re: newbie logging question
> >
> >Both methods are public in a class named GdsBuilderEJB, they also both
> >share a
> >private static Logger variable shown below:
> >
> >private static Logger logger = Logger.getLogger("GdsBuilderEJB");
> >
> >"Shapira, Yoav" wrote:
> >
> >> Hi,
> >> What's common to the methods that do or don't display the %F:%L ?
> >>
> >> Yoav Shapira
> >> Millennium ChemInformatics
> >>
> >> >-Original Message-
> >> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, August 12, 2002 10:11 AM
> >> >To: Log4J Users List
> >> >Subject: Re: newbie logging question
> >> >
> >> >This is only happening in particular methods in particular classes.
> >> Some of
> >> >the
> >> >methods will display the line number and then some will not (within
> the
> >> >same
> >> >class)
> >>
> >> --
> >> To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >> For additional commands, e-mail: <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:log4j-user-
> >[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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




RE: newbie logging question

2002-08-12 Thread Shapira, Yoav

Howdy,
I'm afraid I can't offer more insight ;)  

Does the output change if you use
private static final Logger logger =
Logger.getLogger(GdsBuilderEJB.class.getName());

?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 11:29 AM
>To: Log4J Users List
>Subject: Re: newbie logging question
>
>Both methods are public in a class named GdsBuilderEJB, they also both
>share a
>private static Logger variable shown below:
>
>private static Logger logger = Logger.getLogger("GdsBuilderEJB");
>
>"Shapira, Yoav" wrote:
>
>> Hi,
>> What's common to the methods that do or don't display the %F:%L ?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>> >-Original Message-
>> >From: David Hirst [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, August 12, 2002 10:11 AM
>> >To: Log4J Users List
>> >Subject: Re: newbie logging question
>> >
>> >This is only happening in particular methods in particular classes.
>> Some of
>> >the
>> >methods will display the line number and then some will not (within
the
>> >same
>> >class)
>>
>> --
>> To unsubscribe, e-mail:   <mailto:log4j-user-
>[EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:log4j-user-
>[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:log4j-user-
>[EMAIL PROTECTED]>


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




Re: newbie logging question

2002-08-12 Thread David Hirst

Both methods are public in a class named GdsBuilderEJB, they also both share a
private static Logger variable shown below:

private static Logger logger = Logger.getLogger("GdsBuilderEJB");

"Shapira, Yoav" wrote:

> Hi,
> What's common to the methods that do or don't display the %F:%L ?
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 10:11 AM
> >To: Log4J Users List
> >Subject: Re: newbie logging question
> >
> >This is only happening in particular methods in particular classes.
> Some of
> >the
> >methods will display the line number and then some will not (within the
> >same
> >class)
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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




RE: newbie logging question

2002-08-12 Thread Shapira, Yoav

Hi,
What's common to the methods that do or don't display the %F:%L ?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 10:11 AM
>To: Log4J Users List
>Subject: Re: newbie logging question
>
>This is only happening in particular methods in particular classes.
Some of
>the
>methods will display the line number and then some will not (within the
>same
>class)

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




RE: newbie logging question

2002-08-12 Thread Bhangale, Bhushan

You are not asking fro filename and line number in your RollingFileAppender
pattern than how can you expect for filename and line numbers in log?

-Original Message-
From: David Hirst [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 12, 2002 9:40 AM
To: Log4J Users List
Subject: Re: newbie logging question


log4j.rootLogger=debug, stdout, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/infosystems/iplanet/ias6-dhirst/ias/logs/travel/MyTra
velLog


log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c (%x) - %m%n

log4j.logger.org.mitre.mytravel.servlet.MyTravelServlet=DEBUG
log4j.logger.org.mitre.mytravel.ejb.RTSLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.GDSLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.BookingDirectorLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.BookingDataBuilderLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.DirectorProxyLogger=DEBUG

"Shapira, Yoav" wrote:

> Hi,
> What does your layout conversion pattern for this appender look like?
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 9:06 AM
> >To: [EMAIL PROTECTED]
> >Subject: newbie logging question
> >
> >Hi,
> >I've been attempting to use log4j in a J2EE application, bu going 
> >thru the archives and online manual I've been able to create a couple 
> >different loggers, however I'm stumped by some of the output DEBUG 
> >[Thread-40] (GdsBuilderEJB.java:59) -
> >+++
> >DEBUG [Thread-40] (?:?) - GDS GetQueryString Start: Mon Aug 12 
> >08:38:55 EDT 2002
> >
> >I don't understand why this second message does not contain the file 
> >name and number (this second log statement is also contained within a 
> >file named GdsBuilderEJB.java) Can anyone tell me what the cause 
> >might be and how to fix it.
> >
> >Thanks in advance!
> >Dave Hirst
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:log4j-user- 
> >[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>



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


"The information in this e-mail, and any attachment therein, is 
confidential and for use by the addressee only. If you are not the 
intended recipient, please return the e-mail to the sender and delete 
it from your computer. Although The Bank of New York attempts to 
sweep e-mail and attachments for viruses, it does not guarantee that 
either are virus-free and accepts no liability for any damage sustained 
as a result of viruses." 


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




Re: newbie logging question

2002-08-12 Thread David Hirst

This is only happening in particular methods in particular classes. Some of the
methods will display the line number and then some will not (within the same
class)

"Shapira, Yoav" wrote:

> Hi,
> And so you would expect to to see the file and line number on standard
> out, but in not in your log file.  Yet you say it doesn't come out on
> the console, you get "?:?" instead, right?  Does this happen regularly?
> Only for particular methods?
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 9:40 AM
> >To: Log4J Users List
> >Subject: Re: newbie logging question
> >
> >log4j.rootLogger=debug, stdout, R
> >
> >log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> >log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> >
> ># Pattern to output the caller's file name and line number.
> >log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
> >
> >log4j.appender.R=org.apache.log4j.RollingFileAppender
> >log4j.appender.R.File=/infosystems/iplanet/ias6-
> >dhirst/ias/logs/travel/MyTravelLog
> >
> >
> >log4j.appender.R.MaxFileSize=100KB
> ># Keep one backup file
> >log4j.appender.R.MaxBackupIndex=1
> >
> >log4j.appender.R.layout=org.apache.log4j.PatternLayout
> >log4j.appender.R.layout.ConversionPattern=%p %t %c (%x) - %m%n
> >
> >log4j.logger.org.mitre.mytravel.servlet.MyTravelServlet=DEBUG
> >log4j.logger.org.mitre.mytravel.ejb.RTSLogger=DEBUG
> >log4j.logger.org.mitre.mytravel.ejb.GDSLogger=DEBUG
> >log4j.logger.org.mitre.mytravel.ejb.BookingDirectorLogger=DEBUG
> >log4j.logger.org.mitre.mytravel.ejb.BookingDataBuilderLogger=DEBUG
> >log4j.logger.org.mitre.mytravel.ejb.DirectorProxyLogger=DEBUG
> >
> >"Shapira, Yoav" wrote:
> >
> >> Hi,
> >> What does your layout conversion pattern for this appender look like?
> >>
> >> Yoav Shapira
> >> Millennium ChemInformatics
> >>
> >> >-Original Message-
> >> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, August 12, 2002 9:06 AM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: newbie logging question
> >> >
> >> >Hi,
> >> >I've been attempting to use log4j in a J2EE application, bu
> going
> >> >thru the archives and online manual I've been able to create a
> couple
> >> >different loggers, however I'm stumped by some of the output
> >> >DEBUG [Thread-40] (GdsBuilderEJB.java:59) -
> >> >+++
> >> >DEBUG [Thread-40] (?:?) - GDS GetQueryString Start: Mon Aug 12
> 08:38:55
> >> >EDT 2002
> >> >
> >> >I don't understand why this second message does not contain the file
> >> >name and number (this second log statement is also contained within
> a
> >> >file named GdsBuilderEJB.java) Can anyone tell me what the cause
> might
> >> >be and how to fix it.
> >> >
> >> >Thanks in advance!
> >> >Dave Hirst
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >--
> >> >To unsubscribe, e-mail:   <mailto:log4j-user-
> >> >[EMAIL PROTECTED]>
> >> >For additional commands, e-mail: <mailto:log4j-user-
> >> >[EMAIL PROTECTED]>
> >>
> >> --
> >> To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >> For additional commands, e-mail: <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:log4j-user-
> >[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:log4j-user-
> >[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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




RE: newbie logging question

2002-08-12 Thread Shapira, Yoav

Hi,
And so you would expect to to see the file and line number on standard
out, but in not in your log file.  Yet you say it doesn't come out on
the console, you get "?:?" instead, right?  Does this happen regularly?
Only for particular methods?  

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 9:40 AM
>To: Log4J Users List
>Subject: Re: newbie logging question
>
>log4j.rootLogger=debug, stdout, R
>
>log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>
># Pattern to output the caller's file name and line number.
>log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
>
>log4j.appender.R=org.apache.log4j.RollingFileAppender
>log4j.appender.R.File=/infosystems/iplanet/ias6-
>dhirst/ias/logs/travel/MyTravelLog
>
>
>log4j.appender.R.MaxFileSize=100KB
># Keep one backup file
>log4j.appender.R.MaxBackupIndex=1
>
>log4j.appender.R.layout=org.apache.log4j.PatternLayout
>log4j.appender.R.layout.ConversionPattern=%p %t %c (%x) - %m%n
>
>log4j.logger.org.mitre.mytravel.servlet.MyTravelServlet=DEBUG
>log4j.logger.org.mitre.mytravel.ejb.RTSLogger=DEBUG
>log4j.logger.org.mitre.mytravel.ejb.GDSLogger=DEBUG
>log4j.logger.org.mitre.mytravel.ejb.BookingDirectorLogger=DEBUG
>log4j.logger.org.mitre.mytravel.ejb.BookingDataBuilderLogger=DEBUG
>log4j.logger.org.mitre.mytravel.ejb.DirectorProxyLogger=DEBUG
>
>"Shapira, Yoav" wrote:
>
>> Hi,
>> What does your layout conversion pattern for this appender look like?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>> >-Original Message-
>> >From: David Hirst [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, August 12, 2002 9:06 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: newbie logging question
>> >
>> >Hi,
>> >I've been attempting to use log4j in a J2EE application, bu
going
>> >thru the archives and online manual I've been able to create a
couple
>> >different loggers, however I'm stumped by some of the output
>> >DEBUG [Thread-40] (GdsBuilderEJB.java:59) -
>> >+++
>> >DEBUG [Thread-40] (?:?) - GDS GetQueryString Start: Mon Aug 12
08:38:55
>> >EDT 2002
>> >
>> >I don't understand why this second message does not contain the file
>> >name and number (this second log statement is also contained within
a
>> >file named GdsBuilderEJB.java) Can anyone tell me what the cause
might
>> >be and how to fix it.
>> >
>> >Thanks in advance!
>> >Dave Hirst
>> >
>> >
>> >
>> >
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:   <mailto:log4j-user-
>> >[EMAIL PROTECTED]>
>> >For additional commands, e-mail: <mailto:log4j-user-
>> >[EMAIL PROTECTED]>
>>
>> --
>> To unsubscribe, e-mail:   <mailto:log4j-user-
>[EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:log4j-user-
>[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:log4j-user-
>[EMAIL PROTECTED]>


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




Re: newbie logging question

2002-08-12 Thread David Hirst

log4j.rootLogger=debug, stdout, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/infosystems/iplanet/ias6-dhirst/ias/logs/travel/MyTravelLog


log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c (%x) - %m%n

log4j.logger.org.mitre.mytravel.servlet.MyTravelServlet=DEBUG
log4j.logger.org.mitre.mytravel.ejb.RTSLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.GDSLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.BookingDirectorLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.BookingDataBuilderLogger=DEBUG
log4j.logger.org.mitre.mytravel.ejb.DirectorProxyLogger=DEBUG

"Shapira, Yoav" wrote:

> Hi,
> What does your layout conversion pattern for this appender look like?
>
> Yoav Shapira
> Millennium ChemInformatics
>
> >-Original Message-
> >From: David Hirst [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 9:06 AM
> >To: [EMAIL PROTECTED]
> >Subject: newbie logging question
> >
> >Hi,
> >I've been attempting to use log4j in a J2EE application, bu going
> >thru the archives and online manual I've been able to create a couple
> >different loggers, however I'm stumped by some of the output
> >DEBUG [Thread-40] (GdsBuilderEJB.java:59) -
> >+++
> >DEBUG [Thread-40] (?:?) - GDS GetQueryString Start: Mon Aug 12 08:38:55
> >EDT 2002
> >
> >I don't understand why this second message does not contain the file
> >name and number (this second log statement is also contained within a
> >file named GdsBuilderEJB.java) Can anyone tell me what the cause might
> >be and how to fix it.
> >
> >Thanks in advance!
> >Dave Hirst
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:    >[EMAIL PROTECTED]>
> >For additional commands, e-mail:  >[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie logging question

2002-08-12 Thread Shapira, Yoav

Hi,
What does your layout conversion pattern for this appender look like?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 9:06 AM
>To: [EMAIL PROTECTED]
>Subject: newbie logging question
>
>Hi,
>I've been attempting to use log4j in a J2EE application, bu going
>thru the archives and online manual I've been able to create a couple
>different loggers, however I'm stumped by some of the output
>DEBUG [Thread-40] (GdsBuilderEJB.java:59) -
>+++
>DEBUG [Thread-40] (?:?) - GDS GetQueryString Start: Mon Aug 12 08:38:55
>EDT 2002
>
>I don't understand why this second message does not contain the file
>name and number (this second log statement is also contained within a
>file named GdsBuilderEJB.java) Can anyone tell me what the cause might
>be and how to fix it.
>
>Thanks in advance!
>Dave Hirst
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: