You might want to look into some of the Log4j config web interfaces out
there. Whether you configured Log4j initially via properties or not, Log4j
exposes its API to you. So, you can programmatically modify settings. See
the third party utilities listed on Log4j download page...
http://loggin
Basically, I am using more than one appender. SMTP appender is only for
critical messages. So in JSP or HTML (GUI) I am providing option that
whether user is required these critical messages by mail or not. So if
he selected mail option then he will receive mail otherwise not. But I
am using log4j.
Very proactive. Nicely done!
Jake
Quoting Peter DeGregorio <[EMAIL PROTECTED]>:
> Here is a link to a version of log4j called trace4j which provides a
> built-in trace level to log4j
> http://home.comcast.net/~pdegregorio/index.html . A detailed how-to will be
> provided shortly for anyone incl
Here is a link to a version of log4j called trace4j which provides a
built-in trace level to log4j
http://home.comcast.net/~pdegregorio/index.html . A detailed how-to will be
provided shortly for anyone inclined to do this themselves and has about an
hour to work on it. -- Peter
- Original
I started on a version that used prepared statements (you can have the
code if you wish) but I ran into issues trying to keep it generic
because Oracle doesn't have generated keys.
On Apr 5, 2005 11:47 AM, Lenin David Lozano Argel
<[EMAIL PROTECTED]> wrote:
> I guess that the choice is to use anot
I guess that the choice is to use another JDBCAppender implementation. The
JDBCAppender that comes with log4j does not use PreparedStatement, and this is
a poor practice with JDBC.
Lenin David Lozano Argel
Analista Arquitectura InformÃtica
Gerencia de Desarrollo
Suramericana S.A.
Email: [EMAIL P
I don't know when it will be released. Probably "when it is ready". :-)
On Apr 5, 2005 11:26 AM, John Ferron <[EMAIL PROTECTED]> wrote:
> And when is 1.3 going to be a stable production release?
>
> >>> [EMAIL PROTECTED] 4/5/2005 11:22:11 AM >>>
> 1.3 has a replacement (DBAppender).
>
> On Apr
And when is 1.3 going to be a stable production release?
>>> [EMAIL PROTECTED] 4/5/2005 11:22:11 AM >>>
1.3 has a replacement (DBAppender).
On Apr 5, 2005 11:09 AM, John Ferron <[EMAIL PROTECTED]>
wrote:
> I'm curious as to when the JDBCAppender class is slated to be
replaced
> in the current imp
1.3 has a replacement (DBAppender).
On Apr 5, 2005 11:09 AM, John Ferron <[EMAIL PROTECTED]> wrote:
> I'm curious as to when the JDBCAppender class is slated to be replaced
> in the current implemenation of Log4j. I saw that there is an
> implemention by http://www.dankomannhaupt.de/projects/.
I'm curious as to when the JDBCAppender class is slated to be replaced
in the current implemenation of Log4j. I saw that there is an
implemention by http://www.dankomannhaupt.de/projects/. I was just
curious as to what I should be using. I would like to be using the
log4j implemention but I saw
Maybe I don't understand your question, but wouldn't it just be
something like this?
mySMTPAppender.close();
Todd.
> -Original Message-
> From: utpal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 05, 2005 6:25 AM
> To: log4j-user@logging.apache.org
> Subject: How to disable log4j o
I've never used it personally, but there is a JDBCAppender class for
sending log messages to a database. Here is the reference page:
http://logging.apache.org/log4j/docs/api/org/apache/log4j/jdbc/JDBCAppen
der.html
Todd.
> -Original Message-
> From: William Cai [mailto:[EMAIL PROTECTE
Just set the componentA logger to info and the componentB logger to debug.
XML example config:
On Apr 5, 2005 6:31 AM, Rob Oxspring <[EMAIL PROTECTED]> wrote:
> We have an application composed of some low level libraries and some
> higher level components all c
It will be easy to setup a distince appender per username if the
number of usernames is low. I don't think you can deallocate a logger
and I don't know if the memory usage will be significant so you may
want to do some testing if no one else answers this.
Another option: Set the username in MDC
Hi All,
I am displaying the mailing(smtp) option for log4j in GUI. I have set
the smtp appender in log4j.properties file. While run time(i.e. using
GUI) how I can disable the smtp appender?
What is the way to do this...?
We have an application composed of some low level libraries and some
higher level components all combined to create a single tool. As we
wrote ComponentA it was useful to have the lower level libraries logging
lots of debug but now we have confidence in ComponentA we can switch the
libraries t
Hi all,
Don't want to waste your time. My question is how to configure log4j, let it
log to my database. Do I need to do any custom development? If yes, could
you please give my some tips? Thank you!
-William
That might be a solution. But is it possible to configure "dynamic"
categories so that for each "username" I'll get a separate logfile (like
"username".log)? Another question: when I implement this approach I get a
Logger for each user (and for each class that needs a Logger). When many
users acces
18 matches
Mail list logo