Re: where can i see the log.Debug("somemessage") ???? message

2007-11-14 Thread Jacob Kjome
While Matt's suggestion might be correct, I think the core issue is that log4j.properties is not in the classpath of the running application. Since the user mentioned struts-config.xml and web.xml, the app is clearly a webapp. As such, log4j.properties (or log4j.xml) should go into WEB-INF/clas

Re: 2 FileAppenders with the same file name

2007-11-07 Thread Jacob Kjome
I't in the "extras" companion package, which should work with Log4j-1.2.9 or later (and possibly 1.2.8 as well). See... http://logging.apache.org/log4j/companions/extras/ http://logging.apache.org/log4j/companions/extras/download.html http://svn.apache.org/viewvc/logging/log4j/companions/extras

Re: Log4j not logging hibernate

2007-11-02 Thread Jacob Kjome
The WEB-INF/lib folder is not added to the classpath. Each jar in said folder is but not the folder itself. You need to put it in WEB-INF/classes. I assume you are using Tomcat standalone, with child-first classloading? Then if you put log4j.jar in WEB-INF/lib, it should pick up log4j.prop

Re: Getting log4j.properties out of WEB-INF/classes

2007-10-26 Thread Jacob Kjome
It looks like it should work, although it is bad form to use a servlet init rather than a servlet context listener as well as using getRealPath("/"). Avoid unnecessary File IO in webapps. You could set log4j.debug=true in the properties file. Also, you could do a System.out.println() to test

Re: log4j file name and line number

2007-10-25 Thread Jacob Kjome
James is correct. For Log4j wrappers, all you need to do is pass the FQCN of your class to the logger method that takes it. You absolutely do not, and should not, modify Log4j to achieve this. For instance, using a partial wrapper implementation with most details left out... class LogWrap

Re: Log4j and commons-logging unable to locate each other

2007-10-25 Thread Jacob Kjome
Jon Friis wrote: Hello I have a problem with log4j and commons-logging which i really hope anybody can help me with. Setup: Windows 2000, Apache Tomcat 6.0, JRE 1.6.0_02, log4j-1.2.15, commons-logging annd i am using eclipse 3.3.0 Since i have multiple Web services on the same Tomcat serv

Re: Cluster, WebLogic, and hot change

2007-10-24 Thread Jacob Kjome
It depends on what you are asking for? If you are asking for a single logger repository to span multiple JVM's, then no. That's not possible. But if you are asking for some way to keep the two consistent via some custom configuration facility, sure, that might be possible. I don't know of a

Re: Location of Log4J file in web application

2007-10-09 Thread Jacob Kjome
ner i will set System.setProperty("myfirstwebapp", >rootpath); > >and in mysecondwebapp i will have log4j.xml file as >value="${mysecondwebapp}\\log4jXmlFilter.log" /> >and in context listener i will set System.setProperty("mysecondwebapp", >rootpath); &

Re: Location of Log4J file in web application

2007-10-08 Thread Jacob Kjome
some method to do so? >> which is the right method. >> Also will this cause issue if i have 2 -3 different >> applications setting the same path, will it work >> Is this path for same application or all the applications >> >> >> Ashish >> >> >

Re: Location of Log4J file in web application

2007-10-08 Thread Jacob Kjome
ions setting the same path, will it work Is this path for same application or all the applications Ashish On 10/5/07, Jacob Kjome <[EMAIL PROTECTED]> wrote: Of course it is possible to set -D System properites using Weblogic. You just have to have access to the startup script, which is n

Re: [ANN] logweb-3.0 released

2007-10-07 Thread Jacob Kjome
It's been very useful to me in over the years. Glad to see the new version! One question, though. Does it support choosing the logger repository to configure or does it only support the default logger repository? In a full-stack server without, this would be very useful. If LogWeb is depl

Re: Need help with database logging for JDK 1.1.8

2007-10-07 Thread Jacob Kjome
This is clearly a classpath issue and has nothing to do with Log4j. you don't reference TestJDBCLogging in your Log4j config file. All it has is a static main() method to run arbitrary code. Try running from the directory containing the compiled TestJDBCLogging class and do... java -cla

Re: object is not assignable to a "org.apache.log4j.Layout"

2007-10-05 Thread Jacob Kjome
Is the library containing your custom layout class in the same classloader as Log4j? For instance, did you used to package your custom layout and log4j.jar in WEB-INF/lib, but now have removed log4j.jar from WEB-INF/lib and host it in common/lib. In this situation, Log4j would not be able to

Re: Location of Log4J file in web application

2007-10-05 Thread Jacob Kjome
Of course it is possible to set -D System properites using Weblogic. You just have to have access to the startup script, which is not guaranteed. In any case, setting a system property does not fully solve the issue unless there is only a single app running on the server. When there is more

Re: commons.digester

2007-10-02 Thread Jacob Kjome
This depends on the information Chainsaw is being asked to view. Does it contain logger output from commons-digester? More likely, this has nothing to do with Chainsaw and evereything to do with your Log4j config file allowing for the display of commons-digester log messages and/or having com

Re: Inhibit PropertyConfigurator.configure(...) method usage.

2007-09-23 Thread Jacob Kjome
it. If it's there, it could be of great use to you. >Sorry for the bad English. > No problem. >Giorgio Jake > >-- Initial Header --- > >From : "Jacob Kjome" [EMAIL PROTECTED] >To : "Log4J Users List" log4j-user@logging.apache.

Re: Inhibit PropertyConfigurator.configure(...) method usage.

2007-09-22 Thread Jacob Kjome
Are you talking about rogue library code within one application performing configuration more than once (or at all, since library code has no business performing configuration or supplying log4j configuration files in the classpath) or are you talking about multiple apps using a single logg

Re: No appenders found error with log4j when deploying on Tomcat

2007-09-21 Thread Jacob Kjome
Adding an appender to the "root" logger will provide you with your catch-all appender. Maybe a Console appender. I suggest setting the level for "root" to "WARN" and then lower the threshold as needed for loggers you really care about. Jake On Fri, 21 Sep 2007 07:37:04 -0700 (PDT) James

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-21 Thread Jacob Kjome
logs parts of the messages with the fqn of my application. I am not sure why it does so, might be a wanted behaviour: i will keep them in my log, there is not that many. Thanks a lot for all the support and the help, i feel i learned something from this Paolo Jacob Kjome wrote: Can you

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-20 Thread Jacob Kjome
the bin folder. >> >> In the web-inf/lib folder there are two files now: >> commons-logging-1.1.jar and log4j-1.2.15.jar. >> >> I checked and there is no other copy of commons-logging, >> commons-logging-api or log4j of any version around. >> The only

Re: Centralized logging for distributed loggers.

2007-09-20 Thread Jacob Kjome
ources and another for official Log4j resources. Or maybe drop the distinction altogether. If you are concerned about it, I encourage you to edit it to your liking. The the Wiki is for the community, not just for Log4j committers. Jake >Jacob Kjome wrote: >> At 04:08 PM 8/28/

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-19 Thread Jacob Kjome
hanged, sob Paolo Jacob Kjome wrote: On Wed, 19 Sep 2007 06:53:59 -0700 (PDT) Paolo Scopa <[EMAIL PROTECTED]> wrote: You are right, common loggings came with tapestry. I removed it from the shared/lib directory and copied version 1.1 in web-inf/lib. Copied in the tomcat bin folder the com

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-19 Thread Jacob Kjome
7;s for the right reasons. If your approach matches my clarification above, then all is well :-) Jake Jacob Kjome wrote: On Tue, 18 Sep 2007 07:43:30 -0700 (PDT) Paolo Scopa <[EMAIL PROTECTED]> wrote: Forgotten: thanks a lot for the support. Agree, additivity does not change

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-18 Thread Jacob Kjome
On Tue, 18 Sep 2007 07:43:30 -0700 (PDT) Paolo Scopa <[EMAIL PROTECTED]> wrote: Forgotten: thanks a lot for the support. Agree, additivity does not change much. The funny thing is that i get all the logs anyway. The file got messed in the paste: heve to add XX to param to paste it here for some

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-18 Thread Jacob Kjome
stry.globals.WebRequest >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating SingletonProxy >for service tapestry.listener.ListenerInvoker >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating SingletonProxy >for service tapestry.error.StaleSessionExceptionPresenter &g

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-17 Thread Jacob Kjome
letonProxy >for service tapestry.error.StaleSessionExceptionPresenter >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating SingletonProxy >for service tapestry.parse.TemplateSource >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating SingletonProxy >for service tape

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-17 Thread Jacob Kjome
member i tried to set the debug option in the log4j.xml but i didnt see anything wrong with the initialization. Jacob Kjome wrote: You say that "he log4j-1.2.14.jar and the configuration file are in my project lib directory". Do you mean that both the jar and the XML config file a

Re: Log problem with Tomcat 5 (lots of logs)

2007-09-17 Thread Jacob Kjome
You say that "he log4j-1.2.14.jar and the configuration file are in my project lib directory". Do you mean that both the jar and the XML config file are in WEB-INF/lib? That's not where the config file should should go. It should be in WEB-INF/classes. How are you running Tomcat? Is it in

Re: can't figure why it's not working

2007-09-14 Thread Jacob Kjome
hought I'd clarify to avoid confusion. Jake On Fri, 14 Sep 2007 09:33:20 -0500 "Jacob Kjome" <[EMAIL PROTECTED]> wrote: The syntax for loggers is.. log4j.somLogger=someLevel, someAppender [, anotherAppender] You forgot the level. It's treating yo

Re: can't figure why it's not working

2007-09-14 Thread Jacob Kjome
The syntax for loggers is.. log4j.somLogger=someLevel, someAppender [, anotherAppender] You forgot the level. It's treating your "InfoAppender" as the level. Try... log4j.rootLogger=INFO, InfoAppender, WarnAppender,ErrorAppender Jake On Fri, 14 Sep 2007 15:32:18 +0200 "Amnon Lahav"

Re: Log4j with glassfish

2007-09-10 Thread Jacob Kjome
I take it you are counting on Tomcat's child-first classloading. You are putting log4j.jar in WEB-INF/lib and log4j.properties (or log4j.xml) in WEB-INF/classes (in which case, you really don't need to call configure() yourself, but whatever). A solution to this would be to configure Glassfis

Re: log4j.xml location issue

2007-09-04 Thread Jacob Kjome
At 12:04 PM 9/4/2007, you wrote: > >Hello, > >I have the files commons-logging.properties, log4j.dtd and log4j.xml >in the root of my eclipse proyect. If I create a jar file with them >inside, all the log works properly. But I donĀ“t want to have that >files inside a jar. > >Can anyone tell me how

Re: 1.3 {} notation available in 1.2.x?

2007-09-04 Thread Jacob Kjome
On Tue, 4 Sep 2007 10:03:52 +0200 dirk ooms <[EMAIL PROTECTED]> wrote: Thanks guys for all the useful information. I opted for introducing the slf4j layer since: 1. it had the least impact on my existing 1.3 code: adapt import statements and a replacement of Logger.getLogger() by LoggerFactory

Re: Log4J Question:loading properties file in A.S.

2007-09-03 Thread Jacob Kjome
Did you literally put "/lib/log4j.properties" in the classpath or did you just put the lib directory that contains log4j.properties in the classpath? Only the latter would be valid. The former is a concept used only for jar files. For classes or resources that are not in a jar file, you pu

Re: catalina logging stopped after install log4j.jar

2007-08-30 Thread Jacob Kjome
ralitat de Catalunya C/ Sant Honorat, 1, 08002 - Barcelona Tel. 934 02 48 34 email: [EMAIL PROTECTED] -Missatge original- De: Jacob Kjome [mailto:[EMAIL PROTECTED] Enviat: dimecres, 29 / agost / 2007 20:04 Per a: Log4J Users List Tema: Re: catalina logging stopped after install log4j.jar On

Re: catalina logging stopped after install log4j.jar

2007-08-29 Thread Jacob Kjome
On Wed, 29 Aug 2007 19:20:16 +0200 Oscar Segarra Rey <[EMAIL PROTECTED]> wrote: Hi, I have reinstalled tomcat5.5.23 in a tomcat clustered environment in a W2003 SP2 operating system. With the default configuration everything worked perfectly but due to developement requirements I had t

RE: Centralized logging for distributed loggers.

2007-08-28 Thread Jacob Kjome
At 04:08 PM 8/28/2007, you wrote: >For gui with filtering look at chainsaw I recommend. You would have to >extend it a little but it is a good start. V1.3+ has a better gui tool >as well > I'm not clear on exactly what version number will be used for the release of the next version of Chainsaw.

Re: log4j doesn't recognize my appenders

2007-08-27 Thread Jacob Kjome
How are you using the Log() class? if you are saying using it the way I think you are using it, you are probably triggering configuration for every instance you get of Log. First, this is a bad pattern. I recommend either using Logger directly or using a wrapper such as commons-logging or S

RE: How to configure log4j output file based on the servlet context?

2007-08-22 Thread Jacob Kjome
At 10:31 AM 8/22/2007, you wrote: >On Tue, 21 Aug 2007 9:37 "Jacob Kjome" wrote: >> Not sure where you're getting that? > >I also started using 1.3 because it's on the log4j web-site >http://logging.apache.org/log4j/docs/documentation.html, >and 1.2 did

Re: How to configure log4j output file based on the servlet context?

2007-08-21 Thread Jacob Kjome
ed (for better or for worse). Just ignore them (or maybe I'll actually write content for them someday?). -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 11:33 PM To: Log4J Users List Subject: Re: How to configure log4j output file base

Re: How to configure log4j output file based on the servlet context?

2007-08-20 Thread Jacob Kjome
At 04:39 PM 8/20/2007, you wrote: >I am using log4j in my webapp, which is packaged as webapp.war file. I >deploy this web application under multiple contexts in Tomcat by >renaming the WAR file and deploying it. For example, I create two copies >of the WAR file, e.g. context1.war and context2.war

Re: Changing log filepath and file name at runtime???

2007-08-03 Thread Jacob Kjome
Use a web-based Log4j config editing tool such as LogWeb... http://www.codeczar.com/products/logweb/index.html Jake On Fri, 3 Aug 2007 13:32:08 -0700 (PDT) sateesh <[EMAIL PROTECTED]> wrote: Hi James, We are running more than one sinatnce of our Service in a separate thread and we would li

Re: Not able to log messages

2007-07-29 Thread Jacob Kjome
How are you running your program? Under an appserver? Standalone? How is log4j.properties loaded by Log4j? Using autoconfiguration with log4j.properties in the root of the classpath, pointing to it via the system property, or loading it manually off the classpath or the file system? It

Re: Exception

2007-07-18 Thread Jacob Kjome
What version of Tomcat does Glassfish 2.0b50 use? Jake On Tue, 17 Jul 2007 20:43:52 -0700 (PDT) Kenton <[EMAIL PROTECTED]> wrote: Forgot to include versions. My apologies log4j-1.2.14 Java 1.6.01 Glassfish 2.0b50 Struts 2.08 Windows XP Thanks for the replies everyone. This exception seems

Re: Exception

2007-07-16 Thread Jacob Kjome
I recall that certain versions of Tomcat 5.5, I think somehwere in the 5.5.15 to 5.5.17 series (don't quote me on that) had some serious classloader issues which were corrected in later releases. Search the release notes and upgrade you Tomcat version. Jake On Mon, 16 Jul 2007 11:35:40 -050

Re: Exception

2007-07-15 Thread Jacob Kjome
Always mention the version of Log4j you are using. And if you aren't using the latest version, please try the latest and report back with whether it corrects the issue or not. Jake At 04:00 PM 7/14/2007, you wrote: > >I'm getting this exception in my Struts application. It looks like a log4

Re: JUnit testing of output logged with log4j?

2007-06-24 Thread Jacob Kjome
I'm not sure whether I'm interpreting your request correctly, but I think you are saying that some of your non-JUnit code might spit out errors by the simple fact that you are testing "expected failures" by intentionally putting objects in a state where they should fail to make sure they do f

Re: Log4j1.3 help!!

2007-06-24 Thread Jacob Kjome
What do you expect when you set the ROOT logger to "debug"? That means *all* loggers are set to "debug". I suggest setting the ROOT logger to "warn" and setting individual hierarchies to debug. If your company uses the package namespace com.mycompany, then create a logger like so...

Re: Log4j1.3 help!!

2007-06-24 Thread Jacob Kjome
What do you expect when you set the ROOT logger to "debug"? That means *all* loggers are set to "debug". I suggest setting the ROOT logger to "warn" and setting individual hierarchies to debug. If your company uses the package namespace com.mycompany, then create a logger like so...

Re: log4j log file configuraiton

2007-06-20 Thread Jacob Kjome
What I do is reference a property that I know my web application will set up for me upon application startup that is uniquely named, but predictable. For instance, if your webapp context is named "MyApp", then you'd reference ${MyApp.log.home} and create this property *before* manually confi

Re: Issue with xml logging in log4j

2007-06-19 Thread Jacob Kjome
XML Layout intentionally writes a file with no valid root element. You need to wrap the file in a root element. An easy way to do this is to use DTD entity includes or use XMLInclude. Or, load it as a DocumentFragment into a full Document using the DOM. BTW, you should post this to the lo

new Log4j Related Resources wiki page created!

2007-06-01 Thread Jacob Kjome
I took it upon myself to create a new Wiki page dedicated to Log4j Related External Resources [1]. It is linked from the main Log4jProjectPages [2] in the External Resources section near the bottom of the page. Feel free to add/edit this page as you find resources that would be of use to Lo

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
or) states package org.apache.log4j does not exist. Wonder what I'm missing there, if Tomcat can now see Log4j upon startup, but I can't import the package? -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 1:06 PM To: Log4J Users L

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
arbitrary loggers by default. Jake -----Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 10:35 AM To: Log4J Users List Subject: Re: log4j implementation question On Fri, 1 Jun 2007 11:23:54 -0400 "Propes, Barry L " <[EMAIL PROTECTED]&

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
file in there as well? Both need to be, specifically, in common/lib and the Log4j config file has to be in common/classes. But, again, I don't recall how this works with Tomcat4 which is what I presume you are using based on your use of Tomcat's FileLogger. Jake -Original Mess

Re: log4j implementation question

2007-05-31 Thread Jacob Kjome
n't mess with this. You've got enough on your plate with figuring out the basic workings of Log4j. Concentrate on using Log4j for logging in your application only for now. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:46 P

Re: log4j implementation question

2007-05-31 Thread Jacob Kjome
Apache Logging Project... http://logging.apache.org/log4j/docs/documentation.html http://wiki.apache.org/logging-log4j/Log4JProjectPages Jake -----Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 1:13 PM To: Log4J Users List Subject: Re: log4j implementation que

Re: log4j implementation question

2007-05-31 Thread Jacob Kjome
On Thu, 31 May 2007 11:23:34 -0400 "Propes, Barry L " <[EMAIL PROTECTED]> wrote: ok, see my post below -Original Message----- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 10:32 PM To: Log4J Users List Subject: Re: log4j implementation question

Re: Logging - What good is it ?

2007-05-31 Thread Jacob Kjome
Please add a link to JAMon in the Log4j Wiki. It sounds very useful! http://wiki.apache.org/logging-log4j/Log4JProjectPages Jake On Thu, 31 May 2007 12:39:29 -0400 "Steve Souza" <[EMAIL PROTECTED]> wrote: I am the author of the open source monitoring tool JAMon available at http://www.jamo

Re: log4j implementation question

2007-05-30 Thread Jacob Kjome
At 03:55 PM 5/30/2007, you wrote: >Hello, > >I'm using Tomcat 4.1.31 on my servers, and was looking to implement >log4j for additional logging capabilities and info. > >I've been reading this, but maybe it's a bit outdated or I'm not >following it correctly. > >http://www.onjava.com/pub/a/onjava/2

Re: java.lang.NoClassDefFoundError: org/apache/log4j/Appender Exception in thread "main"

2007-05-30 Thread Jacob Kjome
I'm not familiar with your execution environment, but it sounds like you've got multiple classloaders mucking things up. I can't say much more than that because I've never used "pro guard" nor "launch4j". Jake At 09:04 AM 5/30/2007, you wrote: >Hi, > >I am log4j user and now getting the fol

RE: Log4J Multiple Configuration Files?

2007-05-29 Thread Jacob Kjome
Entity includes may work. Jake Quoting Jon Wilmoth <[EMAIL PROTECTED]>: > Have you tried using Xincludes? You'll need an XML parser that supports > the XInclude pre-processing. > > -Original Message- > From: John Doran [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 29, 2007 11:22 AM >

RE: Log4j repository selector

2007-05-26 Thread Jacob Kjome
gt; } > > } else { > throw new IOException("log4j-init-file >parameter is not set"); > } > > } catch (Exception io) { > throw new ServletException

Re: Log4j repository selector

2007-05-25 Thread Jacob Kjome
I take it you are using Log4j-1.3 alpha? If so, look here... http://logging.apache.org/log4j/docs/api-1.3/org/apache/log4j/selector/ContextJNDISelector.html Jake Quoting Sandip Prashar <[EMAIL PROTECTED]>: > Could you please provide sample, how to configure in RepositorySelector in > log4jin

Re: What about a static logger?

2007-05-20 Thread Jacob Kjome
At 09:42 PM 5/20/2007, you wrote: >Hi! > >Does it matters if we declared the logger as static or a instance variable? > >It seem to me that the static logger has more advantage as it can be >used in static scope/method. > >What is the best practice of declaring a logger? > A nice synopsis of this

Re: log4j.xml vs. log4j.properties in Jbuilder 2006

2007-05-18 Thread Jacob Kjome
The warning you are seeing is for Tomcat's logging. I'm not sure how JBuilder manipulates the classloading behavior of Tomcat when it is embedded, but normally the way that you configure Tomcat to use Log4j for logging is to put log4j.jar and commons-logging.jar in Tomcat's common/lib direct

Re: Initialize log4j in app tier

2007-05-06 Thread Jacob Kjome
Depends on what you want to do. Sounds like you have a single application running on each appserver. In this case, just put log4j.jar and log4j.xml in the server's classpath and let Log4j initialize itself. Alternatively, you can write a startup class for the appserver. I know Weblogic de

Re: Multiple entries for one message in Logfile

2007-04-26 Thread Jacob Kjome
You're either running into an additivity issue or a reconfiguration issue. I would guess it's the latter in this case. I would guess that init is being called multiple times. Each time, a new appender is added pointing to the same log file. Each appender writes to the log file. If you have 4

Re: Announcing, log4jdbc 1.0!

2007-04-23 Thread Jacob Kjome
This sounds really useful. Thanks for sharing! I suggest putting a reference to this out on the Log4j Wiki. In fact, I think maybe we should move all our Log4j related links out there instead of requiring users to submit request to get it on the Log4j web site. I'm still not entirely clear

Re: how can I use log4j to log stack trace

2007-04-22 Thread Jacob Kjome
Just use the Logger methods that take a Throwable argument. Jake At 12:13 AM 4/22/2007, you wrote: >Hi, > >In my java problem, i use e.printStackTrace() thru out my problem. > >Can you please tell me how can I log that to file using log4j? >I notice e.printStackTrace(PrintStream ) but how can I

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-15 Thread Jacob Kjome
{ISO8601}] %-5p >> %c:%L - >> >%m%n >> >log4j.logger.regs=DEBUG >> >log4j.logger.doc=DEBUG >> >log4j.appender.FILE=org.apache.log4j.RollingFileAppender >> >log4j.appender.FILE.layout=org.apache.log4j.PatternLayout >> >log4j.appender.FILE.

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-12 Thread Jacob Kjome
4j sandbox? It is 1.2 compatible. I can't promise you it will work in Weblogic because I haven't tried it with that server, but it's worth a shot. Here's the link again http://svn.apache.org/viewvc/logging/sandbox/log4j/log4j_sandbox/tags/LOG4J_SANDBOX_ALPHA3/src/jav

Re: log4j.dtd file not found

2007-04-12 Thread Jacob Kjome
At 05:15 PM 4/12/2007, you wrote: > >nothing worked, unless I dropped the log4j.dtd file in the same folder as >weblogic startup script is located. >hope this helps someone else. > This should be totally unnecessary, at least with newer versions of Log4j-1.2.xx. Have you tried 1.2.14? Jake >

RE: Updating Wrong File

2007-04-11 Thread Jacob Kjome
mething breaks, try using a repository selector based on JNDI. See another thread on the user list for an explanation of how to use the one in Log4j-1.3 (though I'm not advocating moving permanently to 1.3, only to try it out to see if the ContextJNDISelector works. Then you can modify it to wo

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-11 Thread Jacob Kjome
t; > > > http://jakarta.apache.org/log4j/"; > debug="false"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Jacob Kjome wrote: > > > > > > Have yo

RE: Updating Wrong File

2007-04-11 Thread Jacob Kjome
Weblogic does not implement child-first classloading by default. This means that if there is a log4j.jar in the server classpath, or even in the EAR containing one more more WARS (with each WAR having it's own log4j.jar), the log4j.jar in the parent classloader will be used instead of the one in

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-10 Thread Jacob Kjome
om java >classes that extend HttpServlet. >Logging from other java class files is not working as intended. My >application uses struts 1.2.9 too. > >thanks, >Sohan > > >Jacob Kjome wrote: >> >> Quoting sohan <[EMAIL PROTECTED]>: >> >>> >>

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-10 Thread Jacob Kjome
had a good synopsis of the static logger issue, not to convince you to move to commons-logging. Jake > thanks, > Sohan > > > Jacob Kjome wrote: > > > > > > 1. Use non-static loggers (for Serializable classes, you'll need to > > mark these as transient)

Re: separate log files for application's on weblogic with log4j using RepositorySelector

2007-04-09 Thread Jacob Kjome
1. Use non-static loggers (for Serializable classes, you'll need to mark these as transient) 2. Avoid Classloader-based repository selectors. Use JNDI-base selectors. There's already one written for Log4j-1.3alpha. Even if you don't care to use 1.3, you can use it to get an idea of how to

Re: new wizards to generate log4j.xml files

2007-04-05 Thread Jacob Kjome
Excellent. I just tried the 1.3 version. Very slick! You might want to put references to these out on the Wiki http://wiki.apache.org/logging-log4j/Log4JProjectPages Might be appropriate to put it under UsefulCode, but maybe there should be another page just for links like this? Anyw

Re: Viewing plain text log4j log files (was: Vigilog listing as "Third-party extension"?)

2007-04-04 Thread Jacob Kjome
pported by Chainsaw, but remote tailing has yet to be implemented. It might be as part of the Google Summer of Code, otherwise it might wait a little bit. Jake > regards, > > Wim > > 2007/3/31, Jacob Kjome <[EMAIL PROTECTED]>: > > > > At 12:42 PM 3/30/2007, y

RE: Configuring Log4J with Maven Testing and Production

2007-04-03 Thread Jacob Kjome
This might make a good wiki entry. I encourage you to enter it if you get a chance... http://wiki.apache.org/logging-log4j/UsefulCode Jake At 02:53 PM 4/3/2007, you wrote: >Mark -- > >Try this: > >1) Rename the log4j.xml file that you use for testing to something else, >perhaps test-log4j.

Re: Vigilog listing as "Third-party extension"?

2007-03-31 Thread Jacob Kjome
hen >add webstart version to the website. > >regards, > >Wim >PS: It seems there is a testversion that has the bug solved. I will look >into it. Cool. I think providing a Webstart version will make it more likely that people will try it out. Jake > >2007/3/30, Jacob Kjome &

Re: Vigilog listing as "Third-party extension"?

2007-03-30 Thread Jacob Kjome
It looks like a nice little UI for log viewing. Do you plan on adding the capability to read non-XML logs like Chainsaw? I have to say, I never use XMLLayout. So, personally, I see Chainsaw as my only option ATM, even though Vigilog looks like a nice tool. BTW, have you thought of using JavaWe

Re: log4j properties and unit tests

2007-03-28 Thread Jacob Kjome
Personally, I use a separate Log4j config file for build-time -vs- run-time. But if you must use the same file, you can always set the property when you run the tests. For instance, using Ant... ... ... ... Jake Quoting Argyro Kazaki <[EMAIL PROTECTED]>: > Hello, > > within log4j

Re: Preventing re-initialization or re-configuration

2007-03-21 Thread Jacob Kjome
Ultimately, logging is the concern of the user, not the library creator. As such, the library creator should defer to the user to define the logging configuration (or not if the user doesn't want to). BTW, you'll find good list archives here http://marc.info/?l=log4j-user&r=1&w=2 Jake Quo

Re: Is log4j version 1.2.13 compatible with J2EE 1.4 and Java 5?

2007-03-19 Thread Jacob Kjome
Quoting Sunitha Garapati <[EMAIL PROTECTED]>: > Is log4j version 1.2.13 compatible with J2EE 1.4 and Java 5? > Thanks for your help! > I'm not aware of any incompatibilities with said environments. Jake - To unsubscribe, e-ma

Re: Logger not found exception

2007-03-16 Thread Jacob Kjome
Quoting Kailash Chandra <[EMAIL PROTECTED]>: > I am using the log4j.2.8.jar in my ear file Log jar file is place at my lib > folder at ear level Do you mean "APP-INF/lib"? If it's just in "lib", Weblogic doesn't see that. It must be the former. > I have also set the class-path option of meta-i

Re: strange log4j behaviour

2007-03-12 Thread Jacob Kjome
Are you sure you are picking up the correct config file? "log4j.xml" is used in preference to log4j.properties even with Tomcat's child-first classloading. If log4j.xml is on the classpath in the default package anywhere in the classpath (server classpath or misbehaving jars including log4j

Re: Dynamically changing log levels using Chainsaw

2007-03-12 Thread Jacob Kjome
At 11:54 AM 3/12/2007, you wrote: >Log4J 1.3 will actually provide a servlet (org.apache.log4j.servlet) >that let you change the log level dynamically. This servlet is, I >think, much more mature than logweb. > What makes you think this? I'm not saying anything negative about the servlet includ

Re: named logger .

2007-03-07 Thread Jacob Kjome
Quoting Asif Mekrani <[EMAIL PROTECTED]>: > Hi Group, > > Please can you tell me how to use the names logger. means : > > Usually we use a class name for the logger name, eg: > > private static Log logger = LogFactory.getLog(MyClass.class); > > but wat if, I want to use a string name instead of th

Re: Log4J and Tomcat 5.5 - Trouble getting started

2007-03-06 Thread Jacob Kjome
es on the net show that it >> should be poss. >> However I only need to show exceptions so we can make progess. >> >> The reason I mentioned TC5.5 was in case the changes in logging had >> affected things- it is a while since I've been developing with java >> a

Re: Log4J and Tomcat 5.5 - Trouble getting started

2007-03-06 Thread Jacob Kjome
interpreting the code as you view it in the editor. Given this, the deployment environment is superfluous to the issue at hand. Jake > > > > - Original Message - > From: "Jacob Kjome" <[EMAIL PROTECTED]> > To: "Log4J Users List" > Sent: Monday

Re: Log4J and Tomcat 5.5 - Trouble getting started

2007-03-05 Thread Jacob Kjome
Quoting Chris Chappell <[EMAIL PROTECTED]>: > Hi > > I'm developing an app with Tomcat 5.5 and am trying to add logging to it. > I've tried lots of things and none seem to work: > > I have code like: > > import java.sql.Connection; > import java.sql.SQLException; > import java.sql.Statement; > > i

Re: Newbie trying to change Standard Output log to File log

2007-03-03 Thread Jacob Kjome
og4j.properties on the Unix >machine, perhaps that properties file is conflicting with the >log4j.properties I have in the classes folder. >> >> At least it is good to know that the log4j.properties has been >configured properly, now I'll check to see if there are any >

Re: Newbie trying to change Standard Output log to File log

2007-03-02 Thread Jacob Kjome
Does HIbernate package log4j.properties in their library? Where do you put your modified log4j.properties? Log4j auto-configures itself in a static initializer and looks first for log4j.xml and then log4j.properties (if the former isn't found) in the default package. Are you sure your mod

Re: Multiple logging files

2007-02-26 Thread Jacob Kjome
Loggers inherit appenders unless they are told not to. If you add an appender to a logger and you want all logging for that logger to go only to the appender you just added to it, you'll have to set additivity="false" to this logger. log4j.additivity.com.mycompany.MyClass=false OR Jake

Re: Two applications - one log file

2007-02-26 Thread Jacob Kjome
Sure. You can either point at the same log file and use separate logger repositories or use the same logger repository. Both cases require that you run under the same JVM. The former case allows you to use two separate config files. The latter case would share a configuration between the appli

Re: How to use log4j (log4j.xml) and Maven and Junit??

2007-02-24 Thread Jacob Kjome
At 07:29 AM 2/24/2007, you wrote: >hi - i have exactly the same issue: >* i did what you mentioned (1-3) >* yes it copies the log4j.xml to the right place under src/test/ >* BUT the testrunner the complains that it cannot find the file under the >projects root directory (where also the pom.xml sit

Re: No implementation defined for org.apache.commons.logging.LogFactory

2007-02-23 Thread Jacob Kjome
Is Log4j.jar at the same level commons-logging.jar? That is, are they in the same classloader? And are you making sure to use commons-logging.jar and not commons-logging-api.jar? Jake Quoting [EMAIL PROTECTED]: > Hi, > > Not sure if this is the correct list for this but will try anyway. > > W

<    1   2   3   4   5   6   7   8   9   >