Re: Log4j and Tomcat apps

2002-05-30 Thread Scott Farquhar
there any tricks that I'm missing here? >> >> Jake > > > -- > Ceki > > SUICIDE BOMBING - A CRIME AGAINST HUMANITY > Sign the petition: http://www.petitiononline.com/1234567b > I am signatory number 22106. What is your number? > > > -- > T

Re: Log4j and Tomcat apps

2002-05-30 Thread Scott Farquhar
from being "held hostage"? Are > there any tricks that I'm missing here? > > Jake > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- Scott

Re: Question about multiple loggers/appenders...

2002-05-07 Thread Scott Farquhar
e DOMConfigurator and have > it set to debug mode, and the logger and appender seem to > configure correctly - I just get the error message. > > Anyone have any ideas? > > Mark > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional comma

Re: Changes in xml?

2002-05-06 Thread Scott Farquhar
' name="..." ' to ' >Thanks all. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com

Re: Log4j writes to multiple log files (Additivity problems?)

2002-04-26 Thread Scott Farquhar
ension of org.apache.log4j.FileAppender > SyslogAppender is a simple extension of AppenderSkeleton. Calls a custom > Syslog API also written in Java. > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: log4j 1.1.3 initialization complaints from Tomcat 3.2.4

2002-04-22 Thread Scott Farquhar
gt; (and some more stuff for other classes that looks mostly like the HXA > declaration). > > Joel Rees > Alps Giken Kansai Systems Develoment > Suita, Osaka > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional comma

Re: Different logger objects

2002-04-22 Thread Scott Farquhar
2 "); > > Please help a poor Java programmer ;-) > > Jaume > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: logging different things to different files

2002-04-18 Thread Scott Farquhar
e to log to only one file at a time. All of my attempts so far > have either not worked at all or they dump all messages to both files. > Thanks for any help, >-M@ > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands,

Re: logging different things to different files

2002-04-18 Thread Scott Farquhar
my attempts so far > have either not worked at all or they dump all messages to both files. > Thanks for any help, >-M@ > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -

Re: log4j's errors

2002-04-18 Thread Scott Farquhar
- > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE W

Re: log4j vs jdk 1.4 logging

2002-04-10 Thread Scott Farquhar
s and cons of each? > > - > Steve Cohen > Sr. Software Engineer > Ignite Sports, Inc. > [EMAIL PROTECTED] > > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail:

Re: log4j:ERROR Could not parse input source [org.xml.sax.InputSource @42ee15]

2002-02-22 Thread Scott Farquhar
rvletContextImp > l.java:922) > at > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp > l.java:886) > at > weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext > Manager.java: > 269) > at

Re: converting from category to logger and getting NoSuchField

2002-02-21 Thread Scott Farquhar
Configurator.configure(); > HXDbg.glog = Category.getInstance( HXDbg.class.getName() ); > } > } > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- S

Re: logging from jsp

2002-02-21 Thread Scott Farquhar
obbaly missed a lot.) > > Joel Rees > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Specifying absolute pathname for log4j

2002-02-01 Thread Scott Farquhar
You will have problems using "\", as that is the escape character in java. Try using "\\" instead. Look at: http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html#load(java.io.InputStream) For further using property files. Cheers, Scott -- Scott Farquhar

Re: No appender error...

2002-01-31 Thread Scott Farquhar
Bryan, Try starting you application with debugging information turned on. java -Dlog4j.debug=true a.c.b This will give you more information about whether log4j is finding the config file or not. Cheers, Scott bryan hansen wrote: > Sorry if this gets hashed over, but I am new to log4j > and

Re: new photos from my party! (PROBABLE VIRUS)

2002-01-28 Thread Scott Farquhar
I would hazard a guess that this is a virus. Delete the email without opening the attachment. ".com" is an old dos executable. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World [EMAIL PROTECTED] wrote

Re: Clever Logging?

2002-01-15 Thread Scott Farquhar
http://www.devx.com/devxpress/gurl.asp?i=1X1350332X40831 Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World John Volkar wrote: > Reliablity of this mechanism is tied directly to that of SecurityManager and > it's

Re: Log4J performance under Solaris

2002-01-11 Thread Scott Farquhar
What appenders and layouts are you using? Post your config file to the list. This will have an effect on how long it takes to log. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Ilya Tsymbal wrote: > Hi, >

[Fwd: FW: Error on ejbc]

2002-01-10 Thread Scott Farquhar
[java] at weblogic.utils.compiler.Tool.run(Tool.java:79) > [java] at weblogic.ejbc.main(ejbc.java:21) > [java] > [java] ERROR: ejbc found errors > > > > please let me know what could be the problem and > what should be the CLASSPATH for the

Re: Error on ejbc

2002-01-09 Thread Scott Farquhar
> > please let me know what could be the problem and > what should be the CLASSPATH for the log4j, > > > Thanks > Atias Shimon > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTE

Re: Incomplete tar.gz and .zip distributions?

2002-01-07 Thread Scott Farquhar
lse had this problem? > Eliot > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROT

Re: Log4j overhead...

2002-01-07 Thread Scott Farquhar
g4j? > > Thank you so much > Paolo > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Getting a good user experience on Windows?

2002-01-04 Thread Scott Farquhar
the foreground. Good luck with your project. Scott Bob Jacobsen wrote: > Thanks for the quick reply! > > At 4:53 PM +1100 1/5/02, Scott Farquhar wrote: > >> a. This occurs from the default windows installation running jar >> files with "javaw -jar xxx.jar".

Re: Getting a good user experience on Windows?

2002-01-04 Thread Scott Farquhar
As configured, Log4J's FileAppender puts only the LF on Win95/98. This > is really Not A Problem on Linux or the Macintosh, but again is a real > hassle for users. > > Can anybody suggest solutions to these? Preferably cross-platform ones? > > Thanks in advance. > > Bob -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Discussion regaring configureAndWatch()

2002-01-03 Thread Scott Farquhar
I hate replying to my own posts - but where is build.xml ? I can find it in version 1.1.3 (in dir /build/), but there is no /build/build.xml in 1.2 alpha5? Also - is there read cvs access anywhere? Or is alpha5 the most cutting-edge it gets? Cheers, Scott Scott Farquhar wrote: > C

Re: Discussion regaring configureAndWatch()

2002-01-03 Thread Scott Farquhar
> Summary: Do not cross post messages. In other words, pick a mailing > list and send your messages to that mailing list only. Do not send > your messages to multiple mailing lists. The reason is that people may > be subscribed to one list and not to the other. Therefore, some

Discussion regaring configureAndWatch()

2002-01-03 Thread Scott Farquhar
ki mentioned in this dev post: http://www.mail-archive.com/log4j-dev%40jakarta.apache.org/msg01261.html. Let me know any feedback, and sorry for the long email. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail:

Re: Clearing loggers from the Hierarchy's internal hash table

2001-12-30 Thread Scott Farquhar
Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Steve Ebersole wrote: > Is there a way to clear logger entries from the Hierarchy class's internal > Hashtable? > > The issue I am trying to get around deals with

Re: Chainsaw for Socket Based logging with log4j

2001-12-29 Thread Scott Farquhar
Usman, Google is very useful for queries such as these: http://www.google.com/search?q=chainsaw+log4j The page you are after is here: http://www.puppycrawl.com/chainsaw Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE

Re: logtag

2001-11-28 Thread Scott Farquhar
This is a problem with your jsp engine and not necessarily log4j. try: <% myString = "this is a message " + myString; %> Some jsp engines can't concatenate strings inside the tags. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian

Re: SMTPAppender, Feature Request?

2001-06-27 Thread SCOTT FARQUHAR
I don't know too much about this, but wouldn't you be better using SocketAppender, and then from there sending the email? You would then have the logging implemented in a separate JVM, and would be immune to crashes that would affect buffering of data. Is finalise always called on JVM shutdown

Re: Logging to multiple files from application server

2001-06-20 Thread SCOTT FARQUHAR
You need to use the line: log4j.additivity.com.foo.mailagent.MailAgent=false This means that it does not inherit from its parent (in this case root category). Cheers, Scott >>> [EMAIL PROTECTED] 06/21/01 01:44am >>> Hi, We are running Weblogic server 5.1. We have an application log file whichc

Fwd: Re: [ajug] Logging in JDK1.4 beta, any feedback?

2001-06-14 Thread SCOTT FARQUHAR
FYI An interesting read from another java mailing list. I apologise for duplication for those that receive this twice. Scott --- This e-mail is solely for the use of the intended recepient and may contain information which is confidentia

Re: Help needed : Log4J with servlets

2001-06-13 Thread SCOTT FARQUHAR
Sorry about that. My mistake. >>> [EMAIL PROTECTED] 06/13/01 06:50pm >>> At 17:30 13.06.2001 +1000, SCOTT FARQUHAR wrote: >The problem is that Category takes a String, not a class. Hello Scott, Categoty.getInstance takes a string or a class. Assuming that the MyFooBar cl

Re: Help needed : Log4J with servlets

2001-06-13 Thread SCOTT FARQUHAR
The problem is that Category takes a String, not a class. Category cat = Category.getInstance(NameOfTheServlet.class.getName()); If you turn off friendly error messages in IE, you would have been able to see this error. Scott >>> [EMAIL PROTECTED] 06/13/01 01:15pm >>> Hi, I'm trying to use

Re: Log Analyzers?

2001-06-07 Thread SCOTT FARQUHAR
try analog (www.analog.cx) Not sure what you are trying to analyse, but analog does a great job with web site logs. >>> [EMAIL PROTECTED] 06/07/01 10:23am >>> Hi, I've been using log4j with Jboss for the past couple months now with great success. I'm currently looking for any log analyzers t

Re: Different log files for different Servlet in same JVM

2001-05-29 Thread SCOTT FARQUHAR
The way I do it is pass the context path of the request to the category. As in: Category log = Category.getInstance(Utility.getDottedWeb(request.getServletPath())); Utility.getDottedWeb turns "/" into ".", so then you can log per directory (ie each directory is a parent category to the servlet

Now java error loggin Re: tomcat and log4j

2001-05-07 Thread SCOTT FARQUHAR
You can specify custom error pages, and they can contain scriptlets to log information about the error. Alternatively you could setup Tomcat's error handling (as was already mentioned). >>> [EMAIL PROTECTED] 05/08/01 12:00am >>> Thanks for you r help guys, ive managed to fix the problem:) whic

Re: Message wrapping

2001-05-07 Thread SCOTT FARQUHAR
Personally I think that wrapping should be done on whatever client you wish to view your logs on. However, if you wished to wrap your messages on the fly, you would need to extend your favourite appender and change the doAppend() method. something like: doAppend(LoggingEvent logevent) { i

Re: problem using log4j on browser.

2001-05-07 Thread SCOTT FARQUHAR
I suspect that this is not a log4j problem. You are probably best to go to http://java.sun.com for a tutorial on applets. www.cse.unsw.edu.au/~cs1021 also has some good information. >>> [EMAIL PROTECTED] 05/08/01 06:30am >>> Hi I am trying to use the log4j for logging my project. it works fine

Re: log4j with jsp's

2001-05-06 Thread SCOTT FARQUHAR
1& 2 are involving init-parameters. Instead of hard-coding in the filename that I would use, I pass the filename as a parameter to the servlet. These parameters are stored in a text-file, or in the server config, depending on which server you have. 3) What you are after is a different appende

Re: Rolling log file

2001-05-03 Thread SCOTT FARQUHAR
I'm not sure if it makes any difference - but why do you have this line? log4j.appender.A1.Append=true my RollingFileAppender works correctly, and I don't have that line >>> [EMAIL PROTECTED] 05/04/01 01:21am >>> Hi, I will know has anyone used the Rolling Featur from Log4j?I mean theCreatin

Log4j in J2ee

2001-04-25 Thread SCOTT FARQUHAR
Ceki and others - thanks in advance for your help with this question I am looking to use log4j in a j2ee application. This question has more to do with design patterns than log4j specifically, but I am hoping that someone will have come across and solved something similar. As far as I know, y

Re: Websphere class problem with log4j - Solved

2001-04-11 Thread SCOTT FARQUHAR
I have solved this problem, but the solution was unrelated, so I didn't think of sending it to the list. But here it is: If you are interested - here's what happened: When you import and EJB into Websphere, you must use a command line utility to import the classes into Websphere, as well as t

Re: help with Wrapping/Buffering

2001-04-10 Thread SCOTT FARQUHAR
Wouldn't it be better to write your own Configurator to turn log4j logging on and off when necessary? Surely you could write it so that it would cater for whatever business logic you need.. Scott >>> [EMAIL PROTECTED] 04/10/01 08:19pm >>> Hi there, I've just started using log4j (and am stil

Re: Archival of Log4j-mailing list

2001-04-10 Thread SCOTT FARQUHAR
check out jakarta.apache.org (from memory) Click on mailing lists on the left. It will bring up a page that has references to archives. Happy hunting! Scott >>> [EMAIL PROTECTED] 04/10/01 01:34pm >>> Hi, Are the mails in Log4j-User & Log4j-Developer mailing list, archived/stored somewher

Websphere class problem with log4j

2001-04-09 Thread SCOTT FARQUHAR
I know that it is probably a Websphere problem, but I'm hoping that perhaps someone has come across this before: When using log4j from a jsp, I have no problems. As soon as I use it from a servlet, I get the following error: java.lang.NoClassDefFoundError: org/apache/log4j/Category Can anyone

Betr.: Re: where is the backup file

2001-04-05 Thread SCOTT FARQUHAR
AFAIK you don't have to call rollover() in your code. The appender works it out for you. It will automatically roll the files when they reach a certain size. >>> [EMAIL PROTECTED] 04/06/01 01:44am >>> Hi , i set MaxBackupIndex=1 , but i didn't get any backup file. even if i set MaxBackupIndex=

Antw: Re: PaternLayout: allign to the left don't workasexpected

2001-04-04 Thread SCOTT FARQUHAR
logise for the tone of my last email - it sounded rude, and that's not what I had intended. >>> [EMAIL PROTECTED] 04/04/01 07:09pm >>> Scott, This depends on needs. Nevertheless this I expected from no minus in the format string - right? Regards Frank-Olaf Lohmann >

Betr.: Re: where is the backup file

2001-04-04 Thread SCOTT FARQUHAR
If you set MaxBackupIndex=1 , then you will only get one backup file. If you want more, set MaxBackupIndex=10, and you will end up with 10 files: log.1 log.2 ... log.10 >>> [EMAIL PROTECTED] 04/04/01 08:52pm >>> I have set the MaxBackupIndex of one , (two and tree ..) in the Config-file log4j.

Re: PaternLayout: allign to the left don't work as expected

2001-04-03 Thread SCOTT FARQUHAR
"truncated from the beginning" ie "beginning is truncated" so if you start truncating from the beginning, you will end up with only the last characters left, which IMHO is usually the most useful part. >>> [EMAIL PROTECTED] 04/04/01 03:16am >>> Hello all, the following format string '%-20.30c'

Re: where is the backup file

2001-04-03 Thread SCOTT FARQUHAR
>From the javaDoc on RollingFileAppender: - rollOver public void rollOver() Implemetns the usual roll over behaviour. If MaxBackupIndex is positive, then files {File.1, ..., File.MaxBackupIndex -1} are renamed to {File.2, ..., File.MaxBackupIndex}. Moreover, File is renamed File.