Stack trace when logging exception?

2001-10-10 Thread Mark Womack
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 Appenders static like Category ?

2001-10-10 Thread T Master
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

Re: DailyRollingFileAppender - does it work?

2001-10-10 Thread tmulle
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 __

DailyRollingFileAppender - does it work?

2001-10-10 Thread tmulle
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 _

No File Name & Line Number under UNIX

2001-10-10 Thread Stephen Levinson
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.

RE: can I use email and message buffer as appenders?

2001-10-10 Thread Charles Hudak
>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

RE: PropertyConfigurator.configure method in J2EE

2001-10-10 Thread Michael Mason
> 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

RE: can I use email and message buffer as appenders?

2001-10-10 Thread Lyndsey . J . Hairsine
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

RE: can I use email and message buffer as appenders?

2001-10-10 Thread Jon Skeet
> 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

can I use email and message buffer as appenders?

2001-10-10 Thread Lyndsey . J . Hairsine
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

RE: PropertyConfigurator.configure method in J2EE

2001-10-10 Thread David Schultz
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

RE: Log4j Multiple Properties Files

2001-10-10 Thread Stephen Levinson
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

Log4j Multiple Properties Files

2001-10-10 Thread Truesdale, Jay
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

Removing appenders from a Logger

2001-10-10 Thread Erik Assum
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