RollingFileAppender DST

2006-03-15 Thread Kamal Ahmed
Hi, Does anyone know how the RollingFileAppender behaves/handles DST (Daylight Saving time)? Thanks, -Kamal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: blocking append() or not?

2006-03-15 Thread Robert Fischer
On Wednesday 15 March 2006 19:40, Curt Arnold wrote: > I hope to have a rework of AsyncAppender committed into the SVN > today. [..] However, I think it would be best practice is to write > blocking appenders and use AsyncAppender to provide a consistent > async layer above it. Ok, thanks for th

DB appender

2006-03-15 Thread duvelbier-tsmets
Dear, Has some one informations on how to use the DB appender .. .? table creation is fine but after that I am a bit lost... :) Any hint is appreciated ! \T, -- Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

Re: blocking append() or not?

2006-03-15 Thread Curt Arnold
On Mar 15, 2006, at 12:04 PM, Robert Fischer wrote: Hi, i'm developing a custom appender/receiver for the current SVN version of log4j. My problem is that establishing a connection to the remote server is quite time consuming, so the user has to wait a few seconds before sending a Loggin

blocking append() or not?

2006-03-15 Thread Robert Fischer
Hi, i'm developing a custom appender/receiver for the current SVN version of log4j. My problem is that establishing a connection to the remote server is quite time consuming, so the user has to wait a few seconds before sending a LoggingEvent. I've separated the connection process into a new th

RE: Trace level in log4j

2006-03-15 Thread Asaf Lahav
Thanks for the info Javier. Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Javier Gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 6:55 PM To: Log4J Users List Subject: Re: T

Re: Log4J 1.3 configuration example ... ?

2006-03-15 Thread duvelbier-tsmets
OK It was that simple ... But the code is then wrong in the zip :) \T, -- Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler T. : +32 (0)2 742 05 94 M. : +32 (0)497 44

Rehashing question about consequences of using configureAndWatch in a servlet

2006-03-15 Thread Karr, David
I've googled the many discussions about the impact of using "configureAndWatch()" in a servlet. The Log4J FAQ says it is "unsafe" to use this in a J2EE application because of the nature of how this works. Discussion about this has been going on for a very long time (in internet time). I'd like t

Re: Log4J 1.3 configuration example ... ?

2006-03-15 Thread Javier Gonzalez
I think you are using the old terminology. Try replacing "priority" with "level" and "category" with "logger" and see what happens. On 3/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I use the sample files in the 1.3 zip to output to a file & the console > (see below). > But I get thte

RE: log file is huge

2006-03-15 Thread Bender Heri
Log4j offers you very far reaching possibilities to finetune your log output and log destinations only by config file if you use the logging framework within your code like it is forseen, i.e. fetching the loggers by using the full qualified class name. Then you can configure the log level of ea

Re: Trace level in log4j

2006-03-15 Thread Javier Gonzalez
Ok... so you want to implement a "parallel" level hierachy, so that every log event has a standard log4j level and your added "trace" level? If that is the case, I think you might be on your own. You want to meddle deep into the innards of log4j (if I read you correctly, you'll need to modify Logg

Re: log file is huge

2006-03-15 Thread James Stauffer
Options: Split your logs into multiple files (By level or logger branch) Look through your logs and determine if there is anything that you want to remove by changing the configuration. Use some type of rolling appender. On 3/15/06, Pedro Costa <[EMAIL PROTECTED]> wrote: > When projects starts to

log file is huge

2006-03-15 Thread Pedro Costa
When projects starts to get bigger, the log file starts to get bigger too, and less readable. Is there any advice for this problem? Is there any book that teaches how to use log4j in big projects? Thanks, Pedro - To unsubscrib

Log4J 1.3 configuration example ... ?

2006-03-15 Thread duvelbier-tsmets
I use the sample files in the 1.3 zip to output to a file & the console (see below). But I get thte following message in the console : [SNIP] log4j:INFO Using URL [file:/C:/data/workspaces/Log4JDBC/TestLog4/etc/log4j.xml] for automatic log4j configuration of repository named [default]. Reported

Re: Trace level in log4j

2006-03-15 Thread James Stauffer
Why can't you just use the normal levels? On 3/15/06, Asaf Lahav <[EMAIL PROTECTED]> wrote: > I am not trying to implement a new log level. > I would like to specify a trace level, which is an addition to log levels. > Log levels are preset levels I would like to maintain. > > What I would like to

RE: Can I open a log4J file in a share mode

2006-03-15 Thread Philip Denno
No you can't, this is windows file locking behaviour and has nothing to do with log4j. Cheers, Philip. -Original Message- From: Gunaranjan Pemmaraju [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 12:41 AM To: log4j-user@logging.apache.org Subject: Can I open a log4J file in

RE: Trace level in log4j

2006-03-15 Thread Asaf Lahav
I am not trying to implement a new log level. I would like to specify a trace level, which is an addition to log levels. Log levels are preset levels I would like to maintain. What I would like to do is the ability to specify a "trace level" with a log level e.g. Call a MyLogger.info() functi

Re: Trace level in log4j

2006-03-15 Thread Javier Gonzalez
If I understand correctly... you want to reimplement logging levels? Or do you want to implement a new Level? On 3/15/06, Asaf Lahav <[EMAIL PROTECTED]> wrote: > > Hi, > > I have been going through the log4j documentation and couldn't find what > I'm looking for… so I decided to ask here before I

Trace level in log4j

2006-03-15 Thread Asaf Lahav
Hi, I have been going through the log4j documentation and couldn't find what I'm looking for… so I decided to ask here before I conclude my search. What I am trying to achieve is the ability to define a log4j trace level.   A trace level is a number which indicates the level (importance

RE: ErrorHandler in log4j 1.3

2006-03-15 Thread Jonathan Beer
I'm currently using the DBAppender, and I'm looking through the API and I don't see anything that leads me to believe there's anything in place for handling errors with the appender. Is this true? If this is the case, what should I be doing to make this to happen? I've searched the forums but fo

Can I open a log4J file in a share mode

2006-03-15 Thread Gunaranjan Pemmaraju
a) I have the following settings log4j.appender.defaultAppender=org.apache.log4j.RollingFileAppender log4j.appender.defaultAppender.MaxFileSize=1KB log4j.appender.defaultAppender.File=d:\test.log log4j.appender.systemOutAppender=org.apache.log4j.FileAppender b) Now while my process is on, I