You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Darren Hartford <dh...@ghsinc.com> on 2005/04/20 18:04:25 UTC
Chainsaw V2 config file for DBAppender
Hey all,
Trying to use Chainsaw via configuration file as recommended for use
with the DBAppender. My configuration file loaded with Chainsaw looks
like this:
==========================
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
<plugin name="DBReceiver1" class="org.apache.log4j.db.DBReceiver">
<connectionSource
class="org.apache.log4j.db.UrlConnectionSource">
<param name="driverClass" value="com.mysql.jdbc.Driver"/>
<param name="url" value="jdbc:mysql://<server>/<db>"/>
<param name="user" value="<snip>"/>
</connectionSource>
</plugin>
<root>
<level value="debug"/>
</root>
</log4j:configuration>
===========================
I have Log4j1.3alpha-6 currently logging to a database, and I see the
data. However, when I load up Chainsaw V2 and use this configuration
file nothing happens. The console reports the following errors when
attempting to load the above configuration file:
===================
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.ConfigurationAction] in repository
[default].
3203 [Thread-7] ERROR org.apache.log4j.varia.ListAppender - Attempted to
log with inactive appender named [TEMP_LIST_APP
ENDER].
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.PluginAction] in repository [default].
3219 [Thread-7] ERROR org.apache.log4j.varia.ListAppender - Attempted to
log with inactive appender named [TEMP_LIST_APP
ENDER].
log4j:INFO Creating new logger
[org.apache.log4j.helpers.OptionConverter] in repository [default].
3219 [Thread-7] ERROR org.apache.log4j.varia.ListAppender - Attempted to
log with inactive appender named [TEMP_LIST_APP
ENDER].
log4j:INFO Creating new logger [org.apache.log4j.joran.spi.Interpreter]
in repository [default].
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.ParamAction] in repository [default].
3234 [Thread-7] WARN org.apache.log4j.config.PropertySetter - No such
property [driverClass] in org.apache.log4j.Hierarc
hy.
3234 [Thread-7] WARN org.apache.log4j.config.PropertySetter - No such
property [url] in org.apache.log4j.Hierarchy.
3234 [Thread-7] WARN org.apache.log4j.config.PropertySetter - No such
property [user] in org.apache.log4j.Hierarchy.
log4j:INFO Creating new logger
[org.apache.log4j.joran.action.AppenderAction] in repository [default].
log4j:INFO Returning existing logger
[org.apache.log4j.helpers.OptionConverter] in repository [default].
log4j:INFO Returning existing logger
[org.apache.log4j.joran.spi.Interpreter] in repository [default].
==================
Any ideas please? I really would like to prove that DB logging and
Chainsaw as a viewing tool is a real solution. Thanks,
-D
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org