Now I'm wondering if this is the problem we had and the dirty fix we used
was exactly that - dirty!
Tim.
- Original Message -
From: "Laurent Blume" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 10:11 AM
Subject: Re: log4j losing log file
I'm currently lobbying for my company to donate at the end of the year
to those open source projects we use; Log4j, Tomcat, TortoiseCVS. Won't
be much, times aren't good, but I'm trying.
Tom
Lutz Michael wrote:
The short manual I believe covers enough to answer this too.
http://jakarta.apach
Vikas,
It is not a stupid question. Log4j allows flexibility so that you can get a
logger associated with any string that you want. In your case below, you
chose "chapter1.HelloWorld", but it could have been "mylogger" or whatever.
But everytime you use the same string, you will get back the sam
Please see this code.
public class HelloWorld2 {
static Logger logger = Logger.getLogger("chapter1.HelloWorld");
public static void main(String[] args) {
BasicConfigurator.configure();
logger.debug("Hello World.");
So Myclass is the logger then, right ?
-Original Message-
From: Charles Hudak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 5:23 PM
To: 'Log4J Users List'
Subject: RE: basic question from a newbie
Most of the examples show the 'programmatic' use of Log4j. In most real
appli
Most of the examples show the 'programmatic' use of Log4j. In most real
applications, the logging is integrated into the code and the controlled
externally via the configuration.
In any event, this is how I typically use loggers in my classes:
package com.mystuff;
public class MyClass
{
priv
Hi guys,
I started with log4j couple of hrs ago and I'm reading thru the
documentation and its making sense. I have gone too far into it, but one
basic thing is confusing me. What exactly is a logger.
When u say
Logger log1 = Logger.getLogger("com.foo.Bar");
What is com.foo.Bar, is that some ob
Hi,
I am trying to find out how I can use LevelToMatch and AcceptOnMatch in
Appenders.
Can anyone please post some sample log4j.xml file snippet ?
Thanks
Mandar
Hi,
Is it possible to attach files using SMTpAppender ?
Thanks
Mandar
Sorry I post the message by inadvertance, so here's the follow up
The message is telling this
"If you take a look at the link below, you'll see an article that is not
specific to this problem, but the settings described work for log4j.
http://www7b.software.ibm.com/wsdd/library/techarticles/0310
Hi,
Some time ago I posted a message on this forum about using log4j -
commons-logging and wsad.
Today I received a mail from someone who found some interresting information
about the problem
Howdy,
True. But this is trivial, is in many of the free examples, and in the
archives of this list.
log4j.appender.f1=org.apache.log4j.FileAppender
log4j.appender.f1.File=file1.txt
log4j.appender.f1.Layout=org.apache.log4j.TTCCLayout
log4j.appender.f1.additivity=false
log4j.appender.f2=org.apa
The short manual I believe covers enough to answer this too.
http://jakarta.apache.org/log4j/docs/manual.html
But I whole-heartedly agree, and I've bought the manual too. It's
excellent.
Everyone using Log4j should purchase it. Most of the questions in this list
are answered in the manual.
Support Ceki and buy the manual.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 13:37
To: [EMAIL PROTECTED]
Subject: filter some class to one file, different class to another file
Hello,
I'm new to configuring my log4j.xml file, a
Hello,
I'm new to configuring my log4j.xml file, and have been searching the log4j-user mail
archives for something relevant... please help!
I would like my appender to write to a file, such that only certain java packages get
written out, others get written to a different file.
For example, I
Shapira, Yoav wrote:
Howdy,
Neither in the JSPs nor the servlet: take Jacob's advice about the
ServletContextListener, it's a good one.
Ok, I got it!
I didn't know about that, I'm still quite a newbie at JSPs.
Created my class implementing ServletContextListener, put it in web.xml
of my app, rest
Howdy,
Neither in the JSPs nor the servlet: take Jacob's advice about the
ServletContextListener, it's a good one.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Laurent Blume [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 29, 2003 12:36 PM
>To: Log4J Users List
Jacob Kjome wrote:
Are you calling LogManager.shutdown() at application shutdown? If not,
try that, otherwise, the file will probably remain locked by the VM. Do
this in a servlet context listener contextDestroyed() method.
No, I'm not, and it's a good idea.
But I'm unsure if it's possible to
At 01:31 PM 10/29/2003 +0100, you wrote:
I could reproduce the problem: it happened right after I reload the apps
using the Manager app, using the URL:
https://myserver/manager/reload?path=/webapp
I could do this several times. After a Tomcat start/stop, the logging and
rotating works. After a r
Jeff,
Log4j uses org.apache.log4j.config.PropertySetter to set the properties specified in
the tag. PropertySetter can only set properties that are assignable from the
following types: String, Integer, Long, Boolean, and Priority. In order to set the
ResourceBundle property on a logger you n
I ran into this problem myself, Sre, and happily, I found a solution that
works.
IF you are going to wrap log4j's wrapper Logger class with your own wrapper
class, in this case, your Log4j class, you need to make sure that your
wrapped class calls this form of Logger.log:
--- paste from log4j jav
This should help.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01682.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: File name and Line number problem
Hi,
I am trying to implement
Hi,
I am trying to implement log4j across the entire project, there are about
1000 files in the project.
What I have done is to have a utility class Log4j.java and thru my startup
program initialize
all the default log4j properties. (loggers,appender etc.) from the
specified property file
All of
Hi everybody...
I wrote a small log4j plugin for eclipse, log4eclipse. It's actually still in
alpha stage (0.2.0) but already quite usable (hope so.. :).
It opens a server on a specified port (default 4445) and listens for
SocketAppender.
Get it from http://sf.net/projects/log4eclipse/
I loo
More data on my problem.
I could reproduce the problem: it happened right after I reload the apps
using the Manager app, using the URL:
https://myserver/manager/reload?path=/webapp
I could do this several times. After a Tomcat start/stop, the logging
and rotating works. After a reload, the curr
Yes, because MDC uses a ThreadLocalMap which extends InheritableThreadLocal.
final public class ThreadLocalMap extends InheritableThreadLocal {
...
}
At 09:59 AM 10/28/2003 -0500, Lutz Michael wrote:
Is it correct to state that MDC values are automatically carried forward to
child threads?
Tha
26 matches
Mail list logo