Re: log4j:WARN messages upon startup

2001-12-18 Thread Don Taylor
Look at your properties file and answer the question log4j asked you: *are* you using a FileAppender instead of a ConsoleAppender? If not then post your properties file so we can see what's going on. -- Don --- Chris Gerrard <[EMAIL PROTECTED]> wrote: > > I continue to get these messages when l

Re: Sorry, forgot the Subject ( problems with crimson.jar )

2001-11-26 Thread Don Taylor
n.parser.resources > Implementation-Version: 1.1 > Implementation-Vendor: Apache Software Foundation > > Name: org/apache/crimson/tree/ > Specification-Title: Java API for XML Parsing > Specification-Vendor: Sun Microsystems Inc. > Specification-Version: 1.1 > Imple

Re: newline within %m text

2001-10-31 Thread Don Taylor
'\n' isn't gauranteed to work for *any* java program. What you need to do is get the system property 'line.separator' and append that to your message at the point you want a newline. -- Don --- "Johnson, Clay" <[EMAIL PROTECTED]> wrote: > Is there a way to insert a newline character inside the e

Re: ConsoleAppender

2001-10-27 Thread Don Taylor
The error message said it all. If you want to log to stdout then use the ConsoleAppender, *not* the FileAppender. -- Don --- Ron Cain <[EMAIL PROTECTED]> wrote: > This must be a commonly asked question, but > I can't find the answer in the usual places > (FAQ, docs, etc.). > > My program is usi

Re: Some "basic(?)" questions

2001-10-26 Thread Don Taylor
from a > Category, created a new child Category, changed the fileName > attribute for > the Appender and then set it as the Appender for the new child > Category. > When I logged, I was suprised to see the messages logged twice, i.e., > the > child Category logged to its Appender

Re: conversion pattern and date format error

2001-10-25 Thread Don Taylor
The 'y's are lower-case. You have them upper-case. -- Don --- T Master <[EMAIL PROTECTED]> wrote: > I am setting the date format to use by: > > log4j.appender.TRACKING_DEST2.layout=org.apache.log4j.PatternLayout > log4j.appender.DEST.layout.ConversionPattern=%d{dd MMM > HH:mm:ss,SSS} > [%m

Re: Some "basic(?)" questions

2001-10-25 Thread Don Taylor
--- MiChAeL xEnAkIs <[EMAIL PROTECTED]> wrote: > Hey all - > > > I'm wanting to go the route of configuring the logging framework via > the XML "properties" file w/ the following reservations: > > When looking through the example code provided, I notice that the > example-classes each have

Re: what are make files, and what is dailyrollingfileappender

2001-10-25 Thread Don Taylor
Is your program running at the time of the rollover? That's the most common cause of a rolling log file not rolling over. There have been variations of the DailyRollingFileAppender posted to this group that fixes this problem. I have one at home I could send you, if you're interested. -- Don ---

Re: How to maintain hierarchy among categories, which are created in different classes

2001-10-24 Thread Don Taylor
I don't understand what you mean by "maintain hierarchy, among the categories, which are created in different classes". You don't do anything to maintain the hierarchy. To me a category is simply a name. That's all. There just happens to be a special character, '.', which establishes a parent/chi

Re: Ad: Re: About PropertyConfiguration

2001-10-18 Thread Don Taylor
I would have started with the latter. To me this seems to be more of a layout issue. When I consider extending log4j I look at the appender and layout classes. To each his own, I guess. -- Don --- [EMAIL PROTECTED] wrote: > > Well, I don't *have* to, but I have a special type of Exception, > wh

Re: About PropertyConfiguration

2001-10-17 Thread Don Taylor
Why did you think it was necessary to make a subclass of Category? I don't understand what you mean by you need to log your exceptions your way. How were your needs not being met? -- Don --- [EMAIL PROTECTED] wrote: > > Hi > > I have been using log4j for 2 days now, and I dare to make a > comm

Re: How to create a hierarchy of Category objects?

2001-09-20 Thread Don Taylor
You don't create a category hierarchy per se, it's an implicit creation. You just get instances of a Category object using whatever name you want. I imagine most people use the class name as the category name, since classes have an implicit hierarchy and the log4j docs encourage you to do so. But

Re: I'm stuck - help appreciated

2001-09-11 Thread Don Taylor
Just because there's no io exception doesn't mean log4j found the file. Log4j will not propagate exceptions back to the caller. --- Gunter Sammet <[EMAIL PROTECTED]> wrote: > Howdy, > I don't know what happened, but suddenly my XML file doesn't get > recognized. > I can't find out why. This is th

Re: What is the difference between a Priority and a Threshold?

2001-09-05 Thread Don Taylor
The threshold on an appender simply states the minimum priority a message must have in order to be logged. It's useful when you want different priorities for different appenders. Our application uses a DailyRollingFileAppender with a threshold set at warn for production, for debugging I'm using a

Re: Logging Exceptions

2001-09-05 Thread Don Taylor
I'm afraid you'd still have to make the choice in coding simply because you may not want to log some exceptions, but may want to log others. I could see your point though if you were advocating configuring the logging of exceptions on a class-by-class bases. For example you may want to enable log

Re: making a wrapper for log4j

2001-09-05 Thread Don Taylor
Check out following link from the mail archives: http://marc.theaimsgroup.com/?l=log4j-user&m=99858973708304&w=2 --- "G.L. Grobe" <[EMAIL PROTECTED]> wrote: > I'm trying to put a wrapper around the Logging so that I won't have > to put log4j imports and declarations all over my code. I've heard

Re: log4j wrapper

2001-08-23 Thread Don Taylor
That's why you need to provide the fully-qualified classname. If you use the wrapper I showed, you will not have this problem. That is, the class and method name of the wrapper caller, not the wrapper itself, will be logged. The code which determines the logging method looks one past the fully-qua

RE: log4j wrapper

2001-08-23 Thread Don Taylor
ass everywhere. > > Advantages? Disadvantages? > > -Mark > > -Original Message- > From: Don Taylor [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 9:33 AM > To: LOG4J Users Mailing List > Subject: Re: log4j wrapper > > > > --

Re: Category formating question/proposal

2001-08-23 Thread Don Taylor
As long as the current usage is unaffected, I don't have a problem with it. I can't comment whether it's wacko or not! :) -- Don --- James Vera <[EMAIL PROTECTED]> wrote: > > The precision specifiers in the PatternLayout for category (%c) and > calling > class (%C) take a single integer which

Re: log4j wrapper

2001-08-23 Thread Don Taylor
--- Craig Newlander <[EMAIL PROTECTED]> wrote: > Hello, > >I'd like to absract log4j from my appilication so I don't have to > do a > import org.apache.log4j.* throughout my source files and be dependant > on the > Category class. What is a good method to employ here? > > Craig > I crea

Re: how tdo u set the daily rolling file appender in xml config file

2001-08-23 Thread Don Taylor
Try All you needed to do was specify the DailyRollingFileAppender and set the datePattern property to when you want the rollover. This particular datePattern will rollover daily like you want. -- Don --- pradeep <[EMAIL PROTECTED]> wrote: > hi guy i need to have a rollover file created at

Re: daily log file question (code submission)

2001-08-22 Thread Don Taylor
ly mount the jar. > > > >I want to work on a version that would make point 2 optional, i.e. > to > >allow functionality like DailyRollingFileAppender. > > > >Enjoy. > > > >-- Don > > > >--- Ceki Gülcü <[EMAIL PROTECTED]> wrote: > >>

Re: single property file

2001-08-20 Thread Don Taylor
Could you use different categories for the messages that have to go to different log files? -- Don --- indu ss <[EMAIL PROTECTED]> wrote: > Hello, > > I have a Class A in which some of the log messages > have to be appended to log file(test.log).Some other > log messages in Class A needs to be

Re: Setting treshold on appenders using DOMConfigurator

2001-08-16 Thread Don Taylor
Custom priority classes don't affect how to set the threshold for an appender. To do so add: to your appender element. The priority name is case insensitive so you don't have to worry about that. -- Don --- Gino Marckx <[EMAIL PROTECTED]> wrote: > Hello there, > > Has anyone already used the

PatternHTMLLayout (code submission)

2001-08-12 Thread Don Taylor
Here's another class I find useful. The full classpath is org.apache.log4j.PatternHTMLLayout. It's a more flexible version of HTMLLayout. You can control the content displayed, how it's displayed, etc., using a configuration file, rather than using altered versions of HTMLLayout. The class, source

Re: daily log file question (code submission)

2001-08-12 Thread Don Taylor
This time the jar is attached! :) -- Don --- Ceki Gülcü <[EMAIL PROTECTED]> wrote: > At 09:31 08.08.2001 -0700, Don Taylor wrote: > >--- Aron Kramlik <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I would like to ask if the DailyRollingFileAppen

Re: daily log file question (code submission)

2001-08-12 Thread Don Taylor
like DailyRollingFileAppender. Enjoy. -- Don --- Ceki Gülcü <[EMAIL PROTECTED]> wrote: > At 09:31 08.08.2001 -0700, Don Taylor wrote: > >--- Aron Kramlik <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> I would like to ask if the DailyRollingFileAppen

Re: runtime modification to log

2001-08-10 Thread Don Taylor
gt; >> Don, > >> > >> You can process configuration files as many times as you want. > Please > >> see ProppertyConfigurator.configureAndWatch and > >> DOMConfigurator.configureAndWatch methods. Regards, Ceki > >> > >> At 04:34

Re: runtime modification to log

2001-08-10 Thread Don Taylor
ards, Ceki > > At 04:34 10.08.2001 -0700, Don Taylor wrote: > >AFAIK, no. You only process the configuration file once. You *could* > >programmatically change the priority of a category while the system > is > >running. > > > >--- Chien Wei Tan <[EMAIL PRO

Re: runtime modification to log

2001-08-10 Thread Don Taylor
AFAIK, no. You only process the configuration file once. You *could* programmatically change the priority of a category while the system is running. --- Chien Wei Tan <[EMAIL PROTECTED]> wrote: > > > hi, > > would anyone know if it is possible to say, have your system running, > and > changing

Re: Why isn't message serializable in LoggingEvent?

2001-08-08 Thread Don Taylor
Because message is an Object and not all Objects are serializable. Hence, they serialize the rendered message instead. I know you don't want to do it this way, but the solution is to place the renderers on the client, not the server. Is there any reason why the renderer can't be placed on the clie

Re: daily log file question

2001-08-08 Thread Don Taylor
--- Aron Kramlik <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to ask if the DailyRollingFileAppender is the class that > is > meant to be used for log files that need to be rolled every day. It is. > I have seen some discussion in the archives and I am not sure it > is production ready fro

Re: FQCN Category.log() question

2001-08-02 Thread Don Taylor
I think what you want to do is this: Category.getInstance(callerFQCN).log(priority, message, t); The problem with your approach is you're always working with the root category, which isn't what you want. -- Don --- Scot Hale <[EMAIL PROTECTED]> wrote: > I currently converted the logging in my

Re: Lower Priorities than the root

2001-07-26 Thread Don Taylor
Sure can. A category's priority is inherited from its parent unless that category explicitly sets its own priority. - Don --- Ross Cormier <[EMAIL PROTECTED]> wrote: > I have the root category set to INFO. Can I set a > specific category to a priority DEBUG and have it > print events? > > Than

Re: Categories concept

2001-07-25 Thread Don Taylor
--- Naresh Sharma <[EMAIL PROTECTED]> wrote: > Hello Everybody, > > > Well my understanding about Category is that we can have our own > categories and there must be category declared in the properties > file, > for which we can call like this > > static Category CAT = > Category.getIn