Re: log4j doesn't log files when weblogic is run as a windows service.

2006-09-18 Thread Jacob Kjome
- Original Message From: Jacob Kjome [EMAIL PROTECTED] To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza [EMAIL PROTECTED] Sent: Monday, September 18, 2006 11:57:20 AM Subject: Re: log4j doesn't log files when weblogic is run as a windows service. I'll bet they *do

Re: trace( String, Throwable)

2006-09-17 Thread Jacob Kjome
)); BasicConfigurator.configure(); logger.setLevel(Level.ALL); logger.info(controller initialized ); All the loggings are showing except the trace level !! I just used logger.debug instead and it worked fine. Jacob Kjome wrote: At 11:23 AM 9/16/2006, you wrote: I changed it to logger.error

Re: Logger.getRootLogger() ?? is't static with respect to the JVM ?

2006-09-17 Thread Jacob Kjome
At 05:42 PM 9/16/2006, you wrote: Hello every body: I am having some difficulties working with log4j, and I need some help from some one. I am writing a client/server application, in some way it can be compared with a chat client, where two or more users connect to the server through an applet.

Re: Logger.getRootLogger() ?? is't static with respect to the JVM ?

2006-09-17 Thread Jacob Kjome
this to get support for flash. I will see what I can do. Thanks Jacob Kjome wrote: At 05:42 PM 9/16/2006, you wrote: Hello every body: I am having some difficulties working with log4j, and I need some help from some one. I am writing a client/server application, in some way it can be compared

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-17 Thread Jacob Kjome
At 07:19 PM 9/17/2006, you wrote: Dear Bender, Thanks four your xml sample now it works as I expect, on the attached file you will find it. Nevertheless I have some comments, I am not log4j expert, but I guess the syntax could be simplified, and probably it is possible: 1. With your

Re: trace( String, Throwable)

2006-09-16 Thread Jacob Kjome
At 11:23 AM 9/16/2006, you wrote: I changed it to logger.error, and it worked fine. Now I checked again the configuration and couldn't find what's wrong. May be this ?? logger.setLevel(Level.ALL); but isn't suppose to log all levels ?? if I am wrong, how do i fix this ?? Theoretically, that

Re: setRepositorySelector, guard and redeploy

2006-09-15 Thread Jacob Kjome
Well, when you are using a repository selector, the idea is that you have Log4j in a position where it is not part of your app, but part of the server; otherwise there's no point to using a repository selector. In order for a server wide instance of Log4j to service many apps without each

Re: How to include the compiled classes

2006-09-10 Thread Jacob Kjome
Use Ant to unjar to your classpath and then jar everything back up again. You can also use zipfileset. Alternatively, you can use JarJar [1]. The really nifty thing about JarJar is that you can actually modify the package for Log4j and move it into your own namespace. Not sure if this is

Re: How to include the compiled classes

2006-09-10 Thread Jacob Kjome
Just wanted to mention that after I used JarJar 0.7, even cases using reflection worked great. I had been using 0.6, which still had some bad behavior there. Seems perfect now. I used it on Xerces2 and I've noticed no problems. Jake At 03:34 PM 9/10/2006, you wrote: Use Ant to unjar to

RE: Additivity for org.apache.log4j can not be set?

2006-09-04 Thread Jacob Kjome
At 01:58 AM 9/4/2006, you wrote: From: Curt Arnold [mailto:[EMAIL PROTECTED] Things particularly get interesting in configuration as log messages are cached until the configuration is complete and then replayed through the newly configured logging hierarchy. That additivity doesn't work as

Re: How can i built a java application using java debug class on

2006-08-28 Thread Jacob Kjome
AOP (Aspect Oriented Programming) + Log4j would fit the bill here. Like James said, Log4j has no way to do this automagically. Jake Quoting James Stauffer [EMAIL PROTECTED]: AFAIK there is no way for log4j to automatically log every method entry/exit without explicit logging statements.

Re: I get Exception if tomcat reloads a class

2006-08-23 Thread Jacob Kjome
I would report this as a bug in Bugzilla (I wonder when we will move to Jira like most other Apache projects?)... http://issues.apache.org/bugzilla/ BTW, do you have code in a servlet context listener to close down Log4j upon application shutdown? I'm not sure it will solve this issue, but

Re: JDBC Appender

2006-08-22 Thread Jacob Kjome
/21/06, Jacob Kjome [EMAIL PROTECTED] wrote: If you want to use MDC or NDC, you will have to register the values using your classes. However, once you have that, you can redefine the layout of your appender in the config file without changing your classes. This article provides both

Re: AW: using variables in log4j xml file

2006-08-22 Thread Jacob Kjome
property then you have to access it with ${env.MY_PROPERTY} so on windows you would do SET MY_PROPERTY=c:\my_log_directory and in your log4j.xml you would access it: param name=File value=${env.MY_PROPERTY}/server.log/ patrick -Ursprüngliche Nachricht- Von: Jacob Kjome [mailto

Re: Fwd: log file should be overwritten

2006-08-21 Thread Jacob Kjome
The file appender will only append to a log file if it is specified in the config. Don't specify it in the config and it won't append. Of course, this means on application restart, not for each log statement. I can't imagine why one would want to overwrite for each log statement, but I just

RE: JDBC Appender

2006-08-21 Thread Jacob Kjome
If you want to use MDC or NDC, you will have to register the values using your classes. However, once you have that, you can redefine the layout of your appender in the config file without changing your classes. This article provides both an example of a JDBCAppender configuration and talks

Re: using variables in log4j xml file

2006-08-21 Thread Jacob Kjome
When you say environment variables, do you mean System (JVM-wide) properties? If so, then you just reference them as ${mysyspropname}. I imagine that JBoss sets some system properties and that is probably what you are seeing referenced in the log4j config files you speak of. The example you

RE: using variables in log4j xml file

2006-08-21 Thread Jacob Kjome
window and -D java option but they didn't seem to work. Do you have any idea why? Farzad- -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 3:41 PM To: Log4J Users List Subject: Re: using variables in log4j xml file When you say environment

Re: different config files for different tomcat applications

2006-08-17 Thread Jacob Kjome
To clarify for James, it is absolutely ok for log4j.jar to be in *both* common/lib and each app's WEB-INF/lib... at least in the case of Tomcat where it implements child-first classloading behavior. Child-first classloading makes it so that WEB-INF/lib/log4j.jar gets loaded in preference to any

Re: different config files for different tomcat applications

2006-08-15 Thread Jacob Kjome
message... Thanks: Bence Jacob Kjome wrote: Is there a log4j.xml anywhere on the classpath (in the default package, that is)? Look in directories and jars. I would suggest changing to an XML config file because Log4j looks for it first. If it doesn't find

Re: different config files for different tomcat applications

2006-08-14 Thread Jacob Kjome
Is there a log4j.xml anywhere on the classpath (in the default package, that is)? Look in directories and jars. I would suggest changing to an XML config file because Log4j looks for it first. If it doesn't find log4j.xml, then it looks for log4j.properties. I've seen this happen so often to

Re: need help to use chainsaw VFSLogFilePatternReceiver

2006-08-11 Thread Jacob Kjome
At 04:57 AM 8/11/2006, you wrote: Scott and Jake, Thanks to your help, now it works, It seems that my fileURL was not containing the complete host-domain name (it works for pscp with only the hostname but not with chainsaw/jsch). Glad to hear you go it working. However, I would bet that you

RE: need help to use chainsaw VFSLogFilePatternReceiver

2006-08-09 Thread Jacob Kjome
I my experience, putty doesn't add anything to known_hosts. I'm not sure about what cygwin does? However, JSCH can do that by setting strict host checking to no. The following code will add the host + the host key to your known_hosts for you (assuming you've created it already.. it won't be

Re: configuration of DBAppender with Log4j....

2006-07-26 Thread Jacob Kjome
Hi Yaramaka, You wrote two separate emails in a row to this list with completely different attempts at solving the same problem. Besides that, you wrote to my personal email address 3 times trying to get me to write your config file. Your sense of email list etiquette is lacking. It's

RE: Struts and commons logging

2006-07-11 Thread Jacob Kjome
to provide such a config file. So, just configure Log4j and you should be golden. Jake Quoting Raghuveer [EMAIL PROTECTED]: Where shall we nned to add below code.is it in struts-config or log.xml -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006

Re: Struts and commons logging

2006-07-10 Thread Jacob Kjome
Quoting Raghuveer [EMAIL PROTECTED]: We use struts applications and loggging by log 4j. We are configuring loggers like normal MVS application. But, What is that i need to do if i want my struts application to use commons-logging for logging. I'm not quite sure I understand the question?

RE: NoClassDefFound Error for org/apache/log4j/Layout

2006-06-29 Thread Jacob Kjome
What does line 20 do? Does it configure Log4j? What JDK are you using? What, exactly, does your classpath look like? Jake Quoting venkatlakshmi [EMAIL PROTECTED]: Yes, I have included it in the classpath also. Still it gives me the error. --- Bender Heri [EMAIL PROTECTED] wrote: It's

Re: Adding multiple configuration files to log4j

2006-06-24 Thread Jacob Kjome
You can [re]configure Log4j as many times as you want. Configuration is additive. Once reconfiguration does not blow away the old. I'm not sure what you describe is something Log4j ought to support at its core. You are welcome to create your own startup class that behaves this way and

Re: smtpappender not working in jboss

2006-06-16 Thread Jacob Kjome
without a problem. Regardless of whether I use the version of log4j that came with JBoss (4.0.3SP1) or replace it with 1.2.13, it does this. Chris On 6/15/06, Jacob Kjome [EMAIL PROTECTED] wrote: How about a link to the repository selector in the JBoss Wiki? Also, can we assume that you

Re: poblem with multiple application configurations

2006-06-15 Thread Jacob Kjome
At 03:26 AM 6/15/2006, you wrote: For each application, the log4j.xml and the log4j.jar are located in the WEB-INF/lib directory. But I still don't understand why I log instructions are always written in Well, you don't want to put log4j.xml in WEB-INF/lib. You need to put it in

Re: smtpappender not working in jboss

2006-06-15 Thread Jacob Kjome
How about a link to the repository selector in the JBoss Wiki? Also, can we assume that you are using the logger mycategoryname to do the ERROR and FATAL logging? Does all other log appending work properly with the repository selector? Jake At 01:20 PM 6/15/2006, you wrote: I have

RE: setting up log4j

2006-06-14 Thread Jacob Kjome
Try defining the root logger instead of, or in addition to, your logger definition below. I imagine you'll see output from Struts classes in the root logger if you define it to log at the DEBUG level. Jake Quoting Darren Hall [EMAIL PROTECTED]: Ok, for those following this thread, I've

RE: setting up log4j

2006-06-13 Thread Jacob Kjome
... Since Struts is using commons-logging, do I need to include any Log4J jar files? What is commons-logging using under the covers? -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 1:02 AM To: Log4J Users List Subject: Re: setting up log4j Put

Re: setting up log4j

2006-06-12 Thread Jacob Kjome
Put log4j.jar and commons-logging-adapters-1.1.jar (see commons-logging release notes for this newly distributed jar) in WEB-INF/lib. This assumes that commons-logging-api.jar is in the classpath. If this doesn't work, just use the commons-logging-1.1.jar. Put your Log4j config file in

Re: Weblogic - Concurrent access of the same appender by dif. applications

2006-06-06 Thread Jacob Kjome
Quoting Maxence Terzan [EMAIL PROTECTED]: Jacob Kjome hoju at visi.com writes: Are the EAR's both running in the same JVM? Do you have append=true in the config for the file appenders? I would think it would work you have all this set up correctly. Jake The EAR are running

RE: [BULK] RE: log4j and WSAD 5.0 problems

2006-06-03 Thread Jacob Kjome
permission on these. Thanks, Shan -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 2:26 PM To: Log4J Users List Subject: Re: log4j and WSAD 5.0 problems Does the directory /usr/wasapps/css/logs/ exist? Log4j won't attempt to create

Re: log4j.properties and relative path issues

2006-06-02 Thread Jacob Kjome
Relative paths are relative to the directory from which the JVM started. So, if you make sure that you put your conf.file in the director where you start the JVM, then you are golden. However, if you would not like to have this burden, you can also define a dynamic path using a System property.

Re: log4j and WSAD 5.0 problems

2006-06-02 Thread Jacob Kjome
Does the directory /usr/wasapps/css/logs/ exist? Log4j won't attempt to create it if it doesn't already exist. You must make sure that the full path exists. If it does, Log4j will write the file there just fine (as long as the user that started the JVM has proper permissions). Otherwise, this

Re: Weblogic - Concurrent access of the same appender by dif. applications

2006-06-02 Thread Jacob Kjome
Are the EAR's both running in the same JVM? Do you have append=true in the config for the file appenders? I would think it would work you have all this set up correctly. Jake Quoting [EMAIL PROTECTED]: Hello, I'm currently using Weblogic 8.1. On this server, I've deployed two EARs, each

RE: [BULK] how to print line number

2006-05-12 Thread Jacob Kjome
Shiby, please see the following thread. It provides exactly the info you need. http://marc.theaimsgroup.com/?t=11450579171r=1w=2 Jake Quoting Philip Denno [EMAIL PROTECTED]: The approach you are taking is called using a wrapper class. You need to use the generic log methods on

Re: how to get log4j to work with struts.

2006-05-11 Thread Jacob Kjome
Your XML editor tells you about this error or do you get a java exception at runtime saying this? Ignore the former, and I'd be very surprised if you see the latter. Jake Quoting paul womack [EMAIL PROTECTED]: Zheng Wen Zhe wrote: Hi all, I wanna use logging facility in my struts

RE: why my logger doesn't get executed??

2006-05-11 Thread Jacob Kjome
What exactly do you expect that to do? Put log4j.jar in WEB-INF/lib and log4j.xml in WEB-INF/classes and Log4j will auto-configure itself (assuming you are using a server like Tomcat where it uses child-first classloading behavior). Jake Quoting Zheng Wen Zhe [EMAIL PROTECTED]: I put the

Re: Logger level configuration based on simple pattern

2006-05-04 Thread Jacob Kjome
Instead of matching on on the class having Test in its name (which might be able to be done via a Filter on an appender), I would suggest naming your unit test loggers in a different way than you other loggers. for instance... Logger logger = Logger.getLogger(test. + MyClassTest.class); Then

Re: Configuring log4j under wsad

2006-05-03 Thread Jacob Kjome
Unfortunately, if you are going to use the default PARENT_FIRST mode, you will need to put log4j and commons-logging.properties where commons-logging.jar can find them. If commons-logging.jar is a server-level library, then that's where all the jars have to go (at least with commons-logging's

Re: Log4j doesn't create log files

2006-05-02 Thread Jacob Kjome
- Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Log4J Users List log4j-user@logging.apache.org Sent: Friday, April 28, 2006 5:02 PM Subject: Re: Log4j doesn't create log files Where did you expect the applicationRoot variable to come from? If you don't set it either

Re: DailyRollingFileAppender question

2006-04-30 Thread Jacob Kjome
I might be wrong, but I'll bet Babu wasn't considering programmatically creating the DailyRollingFileAppender. Babu, I think what you are looking for is using a system property to define the file name for the appender. For instance...

Re: Log4j doesn't create log files

2006-04-28 Thread Jacob Kjome
Where did you expect the applicationRoot variable to come from? If you don't set it either within the properties file or as a Java system variable, then why do you expect it to exist? Jake Quoting Rafal Markut [EMAIL PROTECTED]: Hi, I solved my problem. I had:

RE: Logging of specific session in web app.

2006-04-25 Thread Jacob Kjome
: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: den 25 april 2006 05:55 To: Log4J Users List Subject: Re: Logging of specific session in web app. Well, the repository selector would require access to each session object. Even if you could do this, I wouldn't recommend it. 300 or more separate

Re: Logging of specific session in web app.

2006-04-24 Thread Jacob Kjome
Well, the repository selector would require access to each session object. Even if you could do this, I wouldn't recommend it. 300 or more separate logger repositories seems to me like runtime bloat you don't want. I wonder if you could write a filter for an appender which could be

Re: Catgory.getInstance(Class/String) in the way

2006-04-22 Thread Jacob Kjome
You should wrap, not subclass, Logger. See the recent discussion on this topic. I responded to that one and it applies here as well. Jake At 02:34 PM 4/21/2006, you wrote: I'm using a project that rolled yet-another-special logger. It looks like Log4j (mimics the API) and uses Log4j under

Re: Configuring log4j under wsad

2006-04-20 Thread Jacob Kjome
At 02:08 AM 4/20/2006, you wrote: Hi all, hopefully a simple question with a simple answer... How can I get my application to use the log4j implementation when running within wsad without having to set the classloader mode as PARENT_LAST? You can't if log4j.jar exists in the parent

Re: log 4 j error in struts 1.2.8

2006-04-20 Thread Jacob Kjome
I'm not sure what you are trying to accomplish with resetting the levels on the logger, but clearly you have not configured Log4j before attempting to log. The simplest thing to do is include a Log4j config file (log4j.properties or log4j.xml) in the root of the classpath (otherwise known

Re: inheritance dilemma

2006-04-16 Thread Jacob Kjome
the wrapper class. Jake Thanks again, Jeff On 4/15/06, Jacob Kjome [EMAIL PROTECTED] wrote: No, FQCN only comes into play when you log something. It should be... public LoggerX(String loggerName) { logger = Logger.getLogger(loggerName); } Then, as in the example I provided

Re: inheritance dilemma

2006-04-15 Thread Jacob Kjome
) { logger = Logger.getLogger(FQCN); } correct? Thanks Jeff On 4/14/06, Jacob Kjome [EMAIL PROTECTED] wrote: Whoops, I didn't mean to expose the Logger in the constructor. I meant that to be a Class or a String and then create the logger inside the constructor. Anyway, you get

Re: inheritance dilemma

2006-04-14 Thread Jacob Kjome
You shouldn't be extending Logger, but wrapping it. When you log, pass the fully qualified class name (FQCN) of your wrapper to the logger methods and your line numbers will work just fine. For instance... public class LoggerX implements Log { /* * Constant for name of class to

Re: inheritance dilemma

2006-04-14 Thread Jacob Kjome
Whoops, I didn't mean to expose the Logger in the constructor. I meant that to be a Class or a String and then create the logger inside the constructor. Anyway, you get the idea. Jake At 08:34 PM 4/14/2006, you wrote: You shouldn't be extending Logger, but wrapping it. When you log,

Re: odd Initialization issues.

2006-04-02 Thread Jacob Kjome
2 things: 1. You should *always* define the root logger, such as... log4j.rootLogger=WARN, SomeAppender 2. Your other loggers need to be prefixed by log4j.logger., such as... log4j.logger.tb.test=DEBUG, SO1, RF1 log4j.logger.org.apache.commons.httpclient.wire=WARN, SO1, RF1 Jake At

Re: odd Initialization issues.

2006-04-02 Thread Jacob Kjome
(tb.test.SimpleInit). [java] log4j:WARN Please initialize the log4j system properly. There are no other log4j.properties files anywhere else that might be going first in the path. Thanks! -Travis Jacob Kjome [EMAIL PROTECTED] wrote: 2 things: 1. You should *always* define the root logger

RE: How to get log4j to work with commons-logging in web service app?

2006-03-28 Thread Jacob Kjome
-Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 10:13 PM To: Log4J Users List Subject: Re: How to get log4j to work with commons-logging in web service app? Put the config file in the default package. Log4j will pick it up. Jake At 08:13 PM 3/27/2006

Re: Using my own Appender

2006-03-28 Thread Jacob Kjome
Clearly, Log4j cannot find your appender. Make sure your appender exists in the classpath where Log4j can find it. And make sure that Log4j isn't in a parent classloader while the custom appender is in a child. Classloader can look up, not down. Jake At 01:28 AM 3/28/2006, you wrote:

Re: How to get log4j to work with commons-logging in web service app?

2006-03-27 Thread Jacob Kjome
Put the config file in the default package. Log4j will pick it up. Jake At 08:13 PM 3/27/2006, you wrote: I'm not sure if this is a log4j or commons-logging issue but my problem is that... I have an application (local web service) that uses Jetty and AXIS. We just started using

Re: Chainsaw SocketHubAppender triples messages

2006-03-16 Thread Jacob Kjome
Note the change in the subject to what the actual problem is. Anyway, I've seen behavior myself before when using the LogFilePatternReceiver. However, I never tracked down the cause. I'm glad someone was able to reproduce the issue. Hopefully Scott or Paul can tease out the root cause and get

Re: log4j logging on Tomcat: Basic Question

2006-03-05 Thread Jacob Kjome
As far as I can tell, you aren't assigning the R appender to any logger. Was that just an oversight or did you expect something to happen simply by defining the R appender? Jake At 04:04 PM 3/5/2006 -0800, you wrote: Hi, I am trying to use log4j for my application which uses Tomcat 5.5.8

Re: JMSAppender problem: jms.jar is missing.

2006-02-28 Thread Jacob Kjome
jms.jar is a download from Sun. You won't find it in the chainsaw distribution. However, I'm not sure the best place for it? Scott, should it go in the chainsaw plugins directory or JAVA_HOME/jre/lib/ext? Jake At 10:06 AM 2/28/2006 +0100, you wrote: Hi all, I'm using the Java Web Start

RE: Different log files for different web applications under Tomcat

2006-02-27 Thread Jacob Kjome
see comment below... At 06:05 PM 2/27/2006 +0100, you wrote: Interesting aspect. I never dealt with classloaders. Thanks for this improvement of my knowledge. Heri -Original Message- From: Javier Gonzalez [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 5:31 PM To: Log4J

Re: No appenders could be found for logger

2006-02-23 Thread Jacob Kjome
So, you are saying, eventually, after your code using PropertyConfgurator runs, that logging starts working as you expect. But you are still worried about seeing the warning message before you configurator runs? Keep in mind that static loggers may be instantiated and used to log before

Re: AsyncAppender revisited (was: Possible deadlock using AsyncAppender)

2006-02-23 Thread Jacob Kjome
This seems like it would get more response on the developer list. I suggest you post it there. Jake At 09:48 AM 2/23/2006 +, you wrote: Log4j gurus, I can now confirm that I have a Log4j configuration where the dispatching thread (consumer) in an AsyncAppender sometimes becomes the

Re: Use different log files inside one program

2006-02-21 Thread Jacob Kjome
The best bet for both cases is to write a RepositorySelector that selects the LoggerRepository based on criteria you define. The most common cases of repository selectors are ones based on classloader (which can cause classloading issues unless you are *really* careful about it) or JNDI.

chainsaw sometims duplicates events from log file

2006-02-20 Thread Jacob Kjome
I'm seeing an issue where sometimes, not all the time (not all files I've loaded), when I load a log file using VFSLogFilePatternReceiver (might be applicable to any LogFilePatternReceiver, but happened to be using the VFS one connecting via SFTP, in this case), I get some duplicated events.

RE: chainsaw sometims duplicates events from log file

2006-02-20 Thread Jacob Kjome
, though. Jake Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax:503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -Original Message- From: Jacob Kjome [mailto:[EMAIL

is chainsaw remote tailing unsupported?

2006-02-17 Thread Jacob Kjome
First, I finally got SFTP URL's working with Chainsaw. None of my desktop SSH clients store anything the known_hosts file. They either keep info in the registry or somewhere else, but never in known_hosts. I created the entries by using a simple java class to set strict host key checking to

chainsaw timestampFormat and relative dates

2006-02-14 Thread Jacob Kjome
We have a log4j configuration with a file appender having the conversion pattern %-14d{ISO8601} %-5p %c{3} - %m%n This results in lines such as... 13/02 14:05:06 DEBUG ui.actions.MyAction - Some message My chainsaw config has the following for timestampFormat... dd/MM HH:mm:ss This

Re: chainsaw timestampFormat and relative dates

2006-02-14 Thread Jacob Kjome
about the SFTP stuff I mentioned, so if anyone has anything to say about that, it would be appreciated. Jake Quoting Jacob Kjome [EMAIL PROTECTED]: We have a log4j configuration with a file appender having the conversion pattern %-14d{ISO8601} %-5p %c{3} - %m%n This results in lines

RE: chainsaw timestampFormat and relative dates

2006-02-14 Thread Jacob Kjome
Quoting Scott Deboy [EMAIL PROTECTED]: On my WinXP box, In my $user.dir/.chainsaw/plugins directory, I have: commons-logging.jar commons-vfs-1.0-RC2.jar jsch-20050802.jar log4j-chainsaw-vfs.jar I'd hope later versions of jsch would work as well. In $user.dir/.ssh directory,

Re: How to use relative filename in log4j.properties?

2006-02-07 Thread Jacob Kjome
I second James' suggestion. However, if you really want to use relative paths, then you need to know what directory the VM is starting from. This depends on how you are starting Tomcat. I'll assume you are using plain vanilla Tomcat, not Tomcat bundled with JBoss or some other such package.

Re: Tomcat -- All Logs to Syslog

2006-02-07 Thread Jacob Kjome
here can provide information on the SysLogApender issue you are running into. Jake Quoting Mark F [EMAIL PROTECTED]: Jacob Kjome wrote: commons-logging-api.jar should be in CATALINA_HOME/bin. commons-logging.jar and log4j.jar should be in CATALINA_HOME/common/lib. Do *not* put commons

RE: How to use relative filename in log4j.properties?

2006-02-07 Thread Jacob Kjome
Quoting Zsolt [EMAIL PROTECTED]: If that worked I would use it: ${catalina.home}/logs/some.log Have you set CATALINA_HOME as an OS environment variable? That's what Tomcat's .bat and .sh batch startup files, and service.bat Windows service installer use to set the value for catalina.home.

Re: Tomcat -- All Logs to Syslog

2006-02-06 Thread Jacob Kjome
? I know this setup works fine with Tomcat-5.5.xx, which I would recommend moving to ASAP. Jake Quoting Mark F [EMAIL PROTECTED]: Jacob Kjome wrote: Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? Note that is comons-logging.jar, not commons-logging-api.jar

Re: Chainsaw: release_20060202 updated

2006-02-02 Thread Jacob Kjome
Hi Paul, I get the following error when trying to install via webstart... JNLPException[category: Download Error : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ] at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source) at

Re: Chainsaw: release_20060202 updated

2006-02-02 Thread Jacob Kjome
worry about this too much until I can verify whether I can get VFS to find the file directly using the VFS API. I'll let you know what I find. Jake Quoting Jacob Kjome [EMAIL PROTECTED]: Hi Paul, I get the following error when trying to install via webstart... JNLPException[category

Re: Tomcat -- All Logs to Syslog

2006-02-02 Thread Jacob Kjome
Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? Note that is comons-logging.jar, not commons-logging-api.jar. Jake Quoting Mark F [EMAIL PROTECTED]: Version: 5.0.30 Log4j: 1.3 I'm attempting to use log4j for all of tomcat logs. I would like for all

Re: Chainsaw: release_20060202 updated

2006-02-02 Thread Jacob Kjome
Quoting Paul Smith [EMAIL PROTECTED]: The first issue definitely sounds like a cache issue. Didn't think of IE's cache, what Scott says sounds reasonable. (You could always try launching it via, say, Firefox to see if you get a different effect?) Scott's suggestion for clearing the

Re: RollingFileAppender did not create the rolling file and where does error logs to?

2006-02-02 Thread Jacob Kjome
Quoting Michelle Xue [EMAIL PROTECTED]: In my program, I use RollingFileAppender to log(in window), and it didn't create the rolling files when rollOver() is called, and I suspect it's some lock problems in window. Anyone knows how to solve that? Also, in the source code,

Re: Defining the path for my logfiles

2006-02-01 Thread Jacob Kjome
Quoting Dirk Ulrich [EMAIL PROTECTED]: Hello. The sources of my current development dir is D:\projects\SPI\java\src and I am using log4j to log the app's messages. In the log4.properites file I have defined several Appenders and I wonder why the following happens:

RE: Automatic reload of xml configuration file under Tomcat 5.5.4

2006-01-31 Thread Jacob Kjome
Avoid configureAndWatch() like the plague. Instead, use a tool like LogWeb... http://www.codeczar.com/products/logweb/index.html Jake Quoting Philip Denno [EMAIL PROTECTED]: There is a mechanism called configureAndWatch (look in the javadoc) which checks if file has been changed recently,

Re: R: R: R: Application with two loggers - The second one doesn't log anything

2006-01-31 Thread Jacob Kjome
Quoting Pagnin Roberto [EMAIL PROTECTED]: Hi James, I've tried to change levels and removed root logger but no result changes. I've done another try, I've removed the second logger from configuration and modified the application to write to the survived logger but same error appears

Re: XML config DOCTYPE error message

2006-01-20 Thread Jacob Kjome
At 07:11 PM 1/20/2006 -0700, you wrote: I am using an XML config file (posted below). I always get the following error message when starting the application: log4j:ERROR Parsing error on line 2 and column 83 log4j:ERROR Document root element log4j:configuration, must match DOCTYPE root null.

Re: log4j.properties file for Tomcat windows service

2006-01-06 Thread Jacob Kjome
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=[%d{ISO8601}]%5p %c (%F:%M:%L) - %m%n On 12/30/05, Jacob Kjome [EMAIL PROTECTED] wrote: At 01:26 PM 12/30/2005 +0200, you wrote: Hi, I have a problem configuring log4j. I have installed two

RE: How to get rid of the zillions of DEBUG messages?

2006-01-06 Thread Jacob Kjome
. Jake J -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 9:55 PM To: Log4J Users List Subject: Re: How to get rid of the zillions of DEBUG messages? You say log4j.properties is in your WEB-INF/classes directory, but where is log4j.jar

Re: How to get rid of the zillions of DEBUG messages?

2006-01-04 Thread Jacob Kjome
You say log4j.properties is in your WEB-INF/classes directory, but where is log4j.jar? Is it in WEB-INF/lib? And if so, is your server also set up to use child-first classloading behavior like Tomcat is by default? Most servers actually *don't* do this by default. It's usually something

Re: loading log4j.properties from an ear file

2006-01-02 Thread Jacob Kjome
At 11:24 AM 1/2/2006 +0100, you wrote: Hello, I developed a very simple ear application that includes a web app and a stateless EJB. The EJB uses log4j. This application runs in weblogic8.1 server. I am using log4j-1.2.13.jar. The ear structure is as follows:

Re: Duplicate log4j messages appearing in logs

2005-12-30 Thread Jacob Kjome
First, you should be using Logger, not Category. That goes for the config as well: log4j.rootLogger instead of log4j.rootCategory. In any case, that's not super important since either will work, but you should make a practice of using Logger instead of Category for future compatibility.

Re: Duplicate log4j messages appearing in logs

2005-12-30 Thread Jacob Kjome
Jacob Kjome [EMAIL PROTECTED] wrote: First, you should be using Logger, not Category. That goes for the config as well: log4j.rootLogger instead of log4j.rootCategory. In any case, that's not super important since either will work, but you should make a practice of using Logger instead of Category

Re: Tomcat log4j logging

2005-12-29 Thread Jacob Kjome
At 01:48 PM 12/29/2005 +1100, you wrote: Hi everyone, I am using log4j under Tomcat 5.0 with log4j.properties file. When I perform unit test outside of Tomcat I can see log from some deep level of call stack. However, it isn't the case when I use the same components inside Tomcat. It

Re: Tomcat log4j logging

2005-12-29 Thread Jacob Kjome
of using log4j.xml rather than log4j.properties and putting log4j.xml in WEB-INF/classes and log4j.jar in WEB-INF/lib. Then try again. You should see *all* logging at this point. Jake Thank you very much. Hakan Jacob Kjome [EMAIL PROTECTED] 30/12/2005 03:07 AM Please respond to Log4J Users

Re: Logging problem in Tomcat5.0

2005-12-27 Thread Jacob Kjome
This is more a matter for the Tomcat docs. Tomcat does not use Log4j. It uses commons-logging. Furthermore, it uses commons-logging-api.jar which does not recognize Log4j as an implementation that it wraps. I'm pretty sure Tomcat docs have pointers on logging configuration. Note that

Re: log4j xml configuration file parser error

2005-12-20 Thread Jacob Kjome
At 09:13 AM 12/20/2005 -0500, you wrote: Hi, I am getting the following error from log4j (version 1.2.8) during the configuration. I think Curt did some fixing of DTD handling in 1.2.9. Please upgrade to 1.2.9 or, better yet, the latest release version, which is 1.2.13. Jake

Re: Log4j 1.3 default race output

2005-12-13 Thread Jacob Kjome
Quoting Steve Pringle [EMAIL PROTECTED]: Hi All, We're using 1.3 and scheduled to go into production with our application in 3 months. We're using 1.3 minimally, nothing fancy. Do you think we should switch to 1.2.13, or stay with 1.3? If you are doing nothing fancy, I would recommend

Re: log4j-1.3alpha-7 - config load/reload? and watchdog?

2005-12-13 Thread Jacob Kjome
At 12:16 PM 12/13/2005 -0800, you wrote: I'm trying to upgrade to log4j-1.3alpha-7, but not seeing what I would expect...which is hopefully user error. First, I thought I could replace my call to DOMConfigurator.configureAndWatch(LOG4J_CONFIG_FILE, LOG4J_CONFIG_FILE_CHECK); With:

Re: VFSLogFilePatternReceiver usage?

2005-12-09 Thread Jacob Kjome
if I can download a tarball of the latest source and try it. I'll see what I can do. Jake cheers, Paul On 09/12/2005, at 5:37 PM, Jacob Kjome wrote: I feel like I should know this, but having never actually trying the VFSLogFilePatternReceiver before and trying to set it up now, I

<    1   2   3   4   5   6   7   >