When logging an exception object, is there anyway to print out the stack
trace information? Right now, it seems to only print the exception message.
Is there a way to configure the output settings?
-Mark
-
To unsubscribe, e-mai
Are Appender instances static? That is, the same way a Category instance
is.
If two appenders exist with the same name, do they refer to the same object?
Also, when PropertyConfigurator detects a change in the config file (using
configAndWatch()), are Appender and Category instances created th
let me clarify:
These work, at least they say they will roll when they are supposed to
'.'-MM-dd
'.'-MM-dd-a
'.'-MM-dd-HH
'.'-MM-dd-HH-mm
These don't, they always say will roll at midday and midnight
'.'-MM
'.'-ww
'.'-MM-dd
- Tim
__
Hi,
I can't seem to get this appender to work with any other date pattern
besides '.'-MM-dd-mm
Everything else always returns that it will roll at midnight and midday
I've tried ALL of the examples that are in the class JavaDoc
Anyone else see the same thing?
- Tim
_
I am using a Configuration file to configure a ConsoleAppender ... among
others
Here are the lines in the configuration file that configure this appender:
# THIS APPENDER WRITES TO THE CONSOLE
log4j.appender.C1=org.apache.log4j.ConsoleAppender
log4j.appender.
>I'm new to log4j, so forgive me if this is a stupid question, but how can I
>use email as an appender? Also can I use an in-memory buffer as an
>appender, and then retrieve the contents of that buffer at a later stage?
You can actually use a regular WriterAppender via something like this:
Lay
> Maybe this all points to only being able to use Log4J in a
> very specific way
> inside J2EE (or maybe it just means I missed something
> terribly important at
> a very basic level). In any event, I think some clarification will be
> useful to all.
I think the bottom line may be "try it and
Thanks for your help Jon - I have got both working now.
You are right - the best way to learn is looking at the source and javadoc.
"Jon Skeet" <[EMAIL PROTECTED]> on 10/10/2001 14:50:05
Please respond to "LOG4J Users Mailing List"
<[EMAIL PROTECTED]>
To: "LOG4J Users Mailing Lis
> I'm new to log4j, so forgive me if this is a stupid question,
> but how can I use email as an appender?
See org.apache.log4j.net.SMTPAppender.
> Also can I use an in-memory buffer as an
> appender, and then retrieve the contents of that buffer at a
> later stage?
It should be fairly simple
Hi
I'm new to log4j, so forgive me if this is a stupid question, but how can I
use email as an appender? Also can I use an in-memory buffer as an
appender, and then retrieve the contents of that buffer at a later stage?
Does anyone know of any other resources for learning about log4j (I have
read
So, I'm running into some problems where the recommendations for using Log4J
clash with the J2EE spec. Before I begin, thanks for the clarification
about multiple calls to the PropertyConfigurator.configure method.
Here we go...
1) Defining beans that load at Application Server initialization t
For each application I put a textfile in the application's home directory.
The process finds this file by using System.getProperty("user.dir"); which
returns the path to the startup directory. Since the textfile is there it
can be found.
This textfile contains the absolute path to the real config
I want to specify a unique log4j.properties file on the java command line to
be used by the client application being run. I do this like this:
java ... -Dlog4j.configuration=jet.properties -Dlog4j.debug -cp ...
/bla/app.class
Note that there is a log4j.properties file in the CLASSPATH that is us
Hi!
First of all, thanks for a great package!
Then;
While using jakarta-log4j-1.2alpha1 the following occurs:
Given this program:
import org.apache.log4j.*;
import java.util.*;
public class logTest {
public static void printAppenders(Logger l) {
System.out.println("Printing ap
14 matches
Mail list logo