for attaching separate
appenders to the same logger. You have INFO level logs for a Logger going
to a file, but ERROR only going via SMTP to someone.
Ceki's book is excellent, I think everyone should have it in their toolbelt.
cheers,
Paul Smith
you here.
I'd go with the standard log4j approach, with filters by NDC, or even filter
by properties.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, and the configuration files setup for your
needs.
regards,
Paul Smith
[Thanks to Olivier Vierlinck for the great idea of putting the link to the
image from the Wiki]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
I checked out from CVS and built, but I'm not sure where to go from
there. Is there anything that describes what the configuration file
should look like and which additional jars I'll need to run chainsaw?
-Dave
-Original Message-
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent
. (this is all Chainsaw does! :) )
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to customize
behaviour.
Perhaps you could check out the jakarta-log4j module and see his new changes
too see if it meets your needs? (we always love feedback! :) )
cheers,
Paul Smith
-Original Message-
From: Avner BenHanoch [mailto:[EMAIL PROTECTED]
Sent: Sunday, 29 June 2003 9:38 PM
To: Log4J
on the call to the
wrapped Policy to do the work. Wrapping is usually my preferred way of
doing things, but you may just prefer to sub-class, either works fine.
I hope this helps you.
regards,
Paul Smith
-
To unsubscribe, e-mail
desk.
Paul Smith
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 July 2003 8:31 AM
To: Log4J Users List
Subject: Re: Buying the manual from switzerland
Scott,
Thank you for your vote of confidence.
In 99+ percent of cases, the packages we send
Mmmm, for some reason it is using all the right class loaders to attempt to
find the log4j.xml file, but it only uses 1 different methods to try to find
log4j.properties. That is odd. Is this a Tomcat 4.1 specific class loader
issue?
What about trying converting your log4j.properties file into
Hi Jim,
We've been doing a lot of JMX stuff for our app at work, and I'm hooked.
Let me know what you're thoughts are, as I'd love to be part of the
discussion too, as I am keen to be able to manage the Log4j stuff for our
app via JMX.
cheers,
Paul Smith
-Original Message-
From: Doyle
being down here in Oz.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.*.
Any other Chainsaw 2 feedback very welcome.
cheers,
Paul Smith
(Co-dev-type-guy of Chainsaw2, alas swamped by job at the moment)
On Tue, 2003-07-29 at 16:39, Max Rydahl Andersen wrote:
Hi!
First: I like the new Chainsaw 2 ;)
Second: The filtering mechanism should work with regular
text box, let us know what it says.
cheers,
Paul Smith
On Tue, 2003-07-29 at 17:12, Max Rydahl Andersen wrote:
I actually also meant '.*' .- and it ain't make any difference -
everything is still just filtered away.
.*e.* does the same thing
/max
Paul Smith wrote:
I think you want
,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wed, 2003-07-30 at 17:14, Max Rydahl Andersen wrote:
2. Any way to show elapsed time between visible rows - instead of just
the event time ?
That's probably a performance killer at this stage. We could probably
easily allow you to Select two rows, and provide either a status bar
the DOMConfigurator obviously has this too).
I hope this helps you.
cheers,
Paul Smith
On Thu, 2003-07-31 at 09:25, Larry Young wrote:
Hello,
I'm looking at creating a logging package for our applications
(web non-web). The reason for yet-another-logger is that I want
discreet logging types
I could really use something like this myself. Could we perhaps ask if
the author might be in a position to be able to donate the source code
into the sandbox?
cheers,
Paul
On Thu, 2003-08-14 at 06:14, Ceki Glc wrote:
I hadn't seen it before. Really well written and informative article.
I
this Filter impl with some configuration as to what classes you want to
see output.
Hope that makes sense.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
other people would appreciate it if you
have the time. (see
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages)
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
of property configuration code by
putting the log4j.properties file physically in the WEB-INF/classes
directory of your webapp, Log4j will then find it auto-magically.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED
you'll be kicking goals in no time with this.
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for months).
Try checking out the jakarta-log4j module from CVS, and running ant
chainsaw (copy the build.properties.sample to suit your needs)
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
that will help me a
lot.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
work a treat. Let me know how you go.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
going. Then, later
on, you can put on your Where should my log statements go hat and
deal with what should be appended where/when in the configuration file.
This separation makes Logging nice and clean.
cheers,
Paul Smith
On Sat, 2003-08-30 at 01:40, Ricardo Trindade wrote:
I can speak for Chainsaw, as one of the developers of it, I'll defer to
someone else with more LF5 experience to comment on it.
Depends what you mean by embed? What did you have in mind?
I want to have a JPanel inside my application
On Mon, 2003-09-01 at 18:33, Ricardo Trindade wrote:
not yet. is it released or CVS only ?
No, not released yet, but if you check out the jakarta-log4j module from
the apache CVS repository, and use the chainsaw target of the ant
build script you can try it out.
Chainsaw v2 is targeted for
the LevelMatchFilter which takes a single level
to match, and only accepts those, denies all others.
Otherwise you could set the LevelMin of the LevelRangeFilter to ERROR
and that should work too, I think.
cheers,
Paul Smith
On Sat, 2003-09-06 at 07:55, Matt Raible wrote:
I two appenders - a console
I have it configured correctly. I want to log messages that
are FATAL or ERROR - nothing above error.
Matt
-Original Message-
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 4:05 PM
To: Log4J Users List
Subject: Re: LevelRangeFilter not working
, Matt Raible wrote:
Yep - I only want ERROR and FATAL to go to my file appender and all
messages (fatal - debug) to go to the console.
-Original Message-
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 4:18 PM
To: Log4J Users List
Subject: RE
,
Paul Smith
On Mon, 2003-09-08 at 12:23, Bhamidi Krishna wrote:
Hi,
I am trying to configure log4j for an app. Currently, I have deployed
it on Tomcat. My code snippet is -
..
String configFileName = com.common.logger.xml;
URL url = null;
Context ctx=null;
ctx = new
If you don't want to wait for the official release, the HEAD version of
Chainsaw v2 supports it via defining it in a log4j configuration file,
and we're - - close to tidying up the UI to specify it via the GUI
too.
cheers,
Paul Smith
On Tue, 2003-09-09 at 05:22, Lance Birtcil wrote:
Hi,
Has
involved in the Log4j-JDK1.4
matching development might be able to comment on any rationale etc. But
for me, I'm very happy with the current Trace-less log4j.
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED
On Thu, 2003-09-25 at 01:03, Larry Young wrote:
Paul,
Actually, based on our conversation back in August, it works out
better if you put the trace at the front of the class name, that way you
still can specify package names and get everything underneath it, and you
can also turn
think the BufferSize is misleading
here. Perhaps an issue to address with the JBoss team?
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you
NDC.push(...)..
cheers,
Paul Smith
On Thu, 2003-10-02 at 01:10, David Liles wrote:
I just started using log4j and am having trouble trying to figure out how to chain
logging messages
class 1 makes a call to class 2 I would like to be able to pass the message from
class 2
On Thu, 2003-10-09 at 18:21, Kunal H. Parikh wrote:
Hi All !
I have been looking at Log4j and after some reading I believe that Log4j
is mainly used for debugging or error logging or info logging.
I have a scenario where I may need to log every search conducted on our
website.
By default, the SMTPAppender _waits_ for an ERROR level logging event to
arrive, and sends with it the BufferSize # of previous events before it
inside the email for use in context. Think of the Buffer as a sliding
window of events that gets triggered by the arrival of Error.
There are some
This is exactly what the SMTPAppender does, uses a sliding window
(BufferSize property) to hold the events until a triggering event occurs
(by default an ERROR level event).
cheers,
Paul Smith
On Fri, 2003-10-10 at 04:07, [EMAIL PROTECTED] wrote:
Most of our production applications have log
of the email.
cheers,
Paul Smith
On Fri, 2003-10-10 at 07:50, Ken Hoying wrote:
Looking at the documentation, it would appear that
setting the Threshold parameter to DEBUG should
accomplish what I want. However, this does not appear
to be working as documented. I think this is a bug
directory etc.
For windows, you will probably need something like:
webappRoot=c:\\toolkit\\tomcat4.0\\webapps\\
Mainly because of \ need to be escaped.
Hope this helps you.
regards,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL
On Wed, 2003-11-12 at 13:57, [EMAIL PROTECTED] wrote:
Scott,
Is it possible that the Jakarta libraries are reconfiguring log4j on you after your
configuration has run? I ran into this with the open source Joram JMS
implemnetation. As soon as I started using the Joram classes, some
On Thu, 2003-11-13 at 03:45, Scott Smith wrote:
OK, you are forcing me to admit my sins. This morning I woke up and guessed
the problem (I knew I should have waited another day before asking for
help).
I think that there must be a universal Law somewhere about this, I've
also found numerous
On Thu, 2003-11-13 at 02:22, Dimitri Pissarenko wrote:
Hello!
I'm getting the log4j error message
error-message
log4j:WARN No appenders could be found for logger (SomeClass).
log4j:WARN Please initialize the log4j system properly.
/error-message
Most likely candidate is that some
I was also thinking that you might consider putting a Log message
immediately following the BasicConfigurator.configure() call. If you
receive this message to the console, then something else is re-initing
Log4j.
BTW, 2 things about your code:
* The BasicConfigurator will automatically add and
The BasicConfigurator already creates and configures a ConsoleAppender
automatically, so the other one that you are adding is doubling up. (The
output with the time is your appender is your one I think).
cheers,
Paul
On Thu, 2003-11-13 at 09:40, Chang, Betty wrote:
Hi all-- (I'm a new user,
On Thu, 2003-11-13 at 10:00, [EMAIL PROTECTED] wrote:
Paul -
Are you sure about that? I thought that only happened with
BasicConfigurator.configure() (no params).
/**
Add codeappender/code to the root category.
@param appender The appender to add to the root category.
*/
from the classpath?
Ken
-Original Message-
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 5:54 PM
To: Log4J Users List
Subject: Re: I cannot figure out where my extra message line
comes from
on the console
Okay -- so my next question is -- what's the easiest way to get my
program to ignore that log4j.properties file? (I don't really want
to use my own file -- I just want to configure it in the code).
I think the following System property would do it:
-Dlog4j.defaultInitOverride=true
This
a running VM would be a little difficult at the
moment, I think I could add a static factory method to create one for
you. Would that help?
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Thu, 2003-11-20 at 05:16, Scott Deboy wrote:
I'm not sure about whether this capability is available using the latest
distribution's set of filters, but I've contributed a simple expression
language and an ExpressionFilter (should be a part of the next release)
which provide support for
On Thu, 2003-11-20 at 09:17, Scott Deboy wrote:
Yes...currently in the varia package, although I understand Mark may be
planning a move to a new package for the filters.
Bizarre, I was doing a search from within Eclipse, and I could not find
it in the source, I must be going loopy.
By the
On Thu, 2003-11-20 at 22:51, Jones, Marty B. wrote:
I was wondering if Log4J will allow me to do the following:
configure a RollingFileAppender that logs standard output.
configure a RollingFileAppender that logs info and warning output.
configure a RollingFileAppender that logs error level
to let us know how
you go, and if you have any issues, we'll try to help out as much as
possible.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
log4j.appender.telnet.port=23
I think that might need to be:
log4j.appender.telnet.Port=23
As the java bean property introspection rules are case sensitive, (it
looks for a setPort method)
cheers,
Paul Smith
the -server
option seems to help, although you lose some performance there.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
: I am using version which comes with ver 1.2.8 of
log4j.
Hi Robert,
Do you have an appender configured that outputs using the XMLLayout
layout class? That's the first step. If so, is Chainsaw throwing an
error? We'll need a few more details to help you.
cheers,
Paul Smith
see what is happening..
cheers,
Paul Smith
You keep insisting on using non-url syntax for your setup even when you
reference the correct URL syntax. Do this...
java -Dlog4j.configuration=file:/c:/jarfiles/log4j.properties
org.pdfbox.searchengine.lucene.LucenePDFDocument C:\\pdf\h6603lab4
)
cheers,
Paul Smith
On Fri, 2003-11-28 at 12:25, Robert Augustyn wrote:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(org.pdfbox.pdfparser.PDFParse
r).
log4j:WARN Please initialize the log4j system properly.
Next, please paste the entire contents of the
c:/jarfiles/log4j.properties file into another email to the list. It
looks like that is the culprit.
cheers,
Paul Smith
-Original Message-
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 2:04 AM
To: 'Log4J Users List'
Subject: RE: How stable is Chainsaw 2?
It's very stable, and very usable with features be
added all the time,
but
the current functionality is very usable (I might
Not from what I can see. Only build.properties is
loaded. build.properties.sample is ignored and is only used as a
template.
Jake, you are correct. I must be thinking of another project.
Robert, we'll definately need to see the output of the ant target as it
runs.
cheers,
Paul Smith
? or is this
being done via a GUI IDE? If so I would recommend trying to run chainsaw
from the command line first.
BTW, I am in the GMT +10 timezone, so apologise for any lag in
communication.
cheers,
Paul Smith
-Original Message-
From: Robert Augustyn
To: 'Log4J Users List'
Sent: 11/29
is not that far away.
We appreciate your contribution, perhaps you could attach the files to a
bug item (if you haven't done so already), so that your efforts don't
get lost if my understanding is not correct.
cheers,
Paul Smith
On Mon, 2003-12-01 at 20:57, Bansemir, Carsten wrote:
Hi, some time
this feature in earlier since you are using chainsaw v2
already.
Let us know if there is anything else you are passionate about, or if you
find any issues.
cheers,
Paul Smith
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 12/2/03 6:39 PM
Subject: timestamp in chainsaw v2
attached (and additivity is off) they do not end up anywhere.
Hope that helps.
cheers,
Paul Smith
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 12/2/03 7:31 PM
Subject: additivity trouble
Hello everybody,
I'm using a root category for all the logs and i want
-Display Tabs has been removed
in favour of the new feature, and we'll eventually have a separate
'Window' top level menu to assist in the managing of all Tabs and
undocked windows.
Let me know what you think.
cheers,
Paul Smith
if you don't understand what i mean.
servus uli
Paul Smith
you expand a bit more for me?
cheers, and thanks for the feedback, keep it coming.
cheers,
Paul Smith
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 12/4/03 6:40 PM
Subject: chainsaw v2
hi paul,
yesterday i tested the changes you made.
the custom timestamp format
[forgot to send this to the list]
-Original Message-
From: Paul Smith
To: '[EMAIL PROTECTED] '
Sent: 12/4/03 9:41 PM
Subject: RE: chainsaw v2
Ulrich, the bug you mentioned, plus the feature you requested are now
done, and available from cvs.
cheers,
Paul Smith
-Original Message
On Tue, 2003-12-09 at 00:54, [EMAIL PROTECTED] wrote:
hi paul and scott,
is it possible to implement a dialog to confirm that the user wants to exit
der chainsaw v2 app (perhaps an JOptionPane)?
It's certainly possible, we elected to not bother with this as it is
generally infrequent that a
is output (assuming that the
JDK 1.4.2 doesn't still get you)
cheers,
Paul Smith
On Tue, 2003-12-09 at 07:23, struts wrote:
I am also getting the similiar problem. Just I was able to see the stack
trace in the console, but in the database, I can just see the error message
without stack trace
, 2003-12-09 at 08:11, Paul Smith wrote:
Depends how you log your stacktrace. If you log like this:
private static final Logger LOG = Logger.getLogger(.);
...
try {
}
catch(Exception e) {
LOG.error(e);
}
Then you WILL only get the error message without the rest
On Tue, 2003-12-09 at 08:49, eugene akerman wrote:
Hi Scott, Hi Paul
So I am looking at chainsaw and it looks great. I was using LogFactor
until now but I feel I should go with Chainsaw.
Is it possible to get an historic point of view on Chainsaw. For example
Why did you guys decide to work
you'll need to switch additivity off for the logger you want disabled,
otherwise the LoggingEvent gets passed up the logger hierarchy to the
root logger
The short manual has info on this:
http://jakarta.apache.org/log4j/docs/manual.html (see the bit on
additivity)
But when you get Ceki's book,
you wish.
Feel free to ask questions on this list if you have any problems or
thoughts.
cheers,
Paul Smith
project name=install-chainsaw default=install basedir=.
property name=module.dir location=${basedir}/
property name=oro.file.name value=jakarta-oro-2.0.7.zip /
property name
..
Is there a quick way to see what is ignored.
Maybe a popup dialog or inline panel under the logger tree that could
be shown/hidden, with a list of loggers (full dotted package name) on
the ignore list, which you can uncheck?
Glad to hear that the installer worked a treat.
cheers,
Paul Smith
of constraint in mind here? Be good to have
all this in the back of my mind as I'm developing.
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I noticed that behaviour, is there a reason. It's a bit annoying to have to
turn off each sub-logger. When configuring loggers, if you set a logger to
FATAL, then all sub-loggers are converted to FATAL, right?? Shouldn't
chainsaw replicate this idea.
Most times nodes in a logger tree
In almost all cases this is correct, the logging done to the appender is
all done within the same thread.
Only the AsyncAppender performs it's appending in a separate thread.
regards,
Paul Smith
On Thu, 2003-12-11 at 19:32, Yu Xiang Xi (Maveo) wrote:
It's known that log4j has a good
Problem 1: I think we'll need to see the code where you initialise the
logger, and where you do the actual logging. Storing a local reference
to the logger is fine, and the recommended practice. If you make it
static, even better, I am not sure why you would want the GC to collect
it.
Problem
On Fri, 2003-12-12 at 10:59, Shimi Avizmil wrote:
First of all thanks for the reply !
Problem 1:
private Log log = MySystem.getLog(getClass().getName());
I'm not talking about gc the logger, I'm talking about a case where if I have an
object that has a static logger reference, and this
type of Appender are you using (FileAppender? Daily*Appender?), and
what version of log4j are you using? (the latest is log4j 1.2.8)
cheers,
Paul Smith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
whoops, I thought you meant on the ant site, I think I can accomodate
this.
On Mon, 2003-12-15 at 12:40, Paul Smith wrote:
I'd drop a line to the good folks over on the ant-user mailing list.
I'm sure they can help you out.
cheers,
Paul Smith
On Mon, 2003-12-15 at 12:34, Wascally
I've added this to the Xdocs of the site, but I need to confirm with
Ceki on the exact process of getting the changes reflected on the actual
website.
cheers,
Paul
On Mon, 2003-12-15 at 12:34, Wascally Wabbit wrote:
Can someone point-to/describe how we can get our Log4j-Ant
tasks listed
It's the splitting of the events into different tabs, the frst one, tab
highlighting, was related to what rules for highlighting are defined per
tab.
I think Scott Deboy has already done the saving of the colouring prefs,
that should be working?
The tab identifier preference is now available
Done. (Thanks to Ceki for fixing a permissions problem)
On Mon, 2003-12-15 at 13:15, Wascally Wabbit wrote:
At 08:55 PM 12/14/2003, you wrote:
I've added this to the Xdocs of the site, but I need to confirm with
Ceki on the exact process of getting the changes reflected on the actual
website.
There is already an SMTPAppender in log4j, and very handy it is too.
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html
cheers,
Paul Smith
On Thu, 2003-12-18 at 19:55, Charl Gerber wrote:
Is there an implementation available (or planned) for a log4j e-mail logger
89 matches
Mail list logo