I haven't used UrlConnectionSource, but I use DriverManagerConnectionSource
with CustomSQLDBReceiver.
Here's my receiver config. You may want to try copying this example's
connectionsource section into your config & changing the appropriate info.
Hello,
I'm exploring Log4j's UGLI interface as a logging-pkg abstraction option.
Is there a way to (programmatically) set the logging level of a ULogger?
Or is this only controllable via the config file?
For instance, I'd like to do something like this:
ULogger logger = LoggerFactory.getLogger
In the plain text version I'm using
log4j.appender.dest1.layout.ConversionPattern=%d{-MMM-dd
HH:mm}%-5p%m%n
In the xml version this would be invalid (markup in an attribute value)
http://www.w3.org/TR/2004/REC-xml11-20040204/#syntax
Do others find it a nuisance to have to escape characters
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:
==
http://jakarta.apache.org/log4j/";
debug="false">
On Wed, 2005-04-20 at 08:45 +0100, [EMAIL PROTECTED] wrote:
>
>
> in the log4j-1.2.8.jar, there is a dtd present at
> org/apache/log4j/xml/log4j.dtd
Thanks Nigel.
I think jar enables extraction of individual files doesn't it?
I'll have a go.
regards DaveP
--
> Everything in Log4j can be accessed programatically.
Thanks,
So, if the Log4J API allows it, could someone please point me towards
the correct way to ** remove ** a logger? I certainly cant see it in the
documentation.
Thanks,
Dave
-Original Message-
From: Jacob Kjome [mailto:[EMAI
> Everything in Log4j can be accessed programatically.
Thanks,
So, if the Log4J API allows it, could someone please point me towards
the correct way to ** remove ** a logger? I certainly cant see it in the
documentation.
Thanks,
Dave
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
Quoting "Irving, Dave" <[EMAIL PROTECTED]>:
> Hi,
>
> Id like to switch an application over from using legacy logging software
> to log4j.
> In the application I am logging for, Loggers really can be dynamic (e.g.
> plug-ins can be dynamically loaded and unloaded, and should really have
> their ow
Quoting Jitendra Kharche <[EMAIL PROTECTED]>:
> Hi Jake,
>
> Thanks. The way you have suggested is another good way. But my problem
> is little different. I want to use a system variable in the path of log
> file. If I do using your method, it will still be a hardcoded path
> because once I code i
Hi,
Id like to switch an application over from using legacy logging software
to log4j.
In the application I am logging for, Loggers really can be dynamic (e.g.
plug-ins can be dynamically loaded and unloaded, and should really have
their own logging domain).
Im going to want each Logger to have it
Thanks. The callAppenders method does not jump out like the forcedLog
method does when looking for a way to always log, but now the two
methods are associated in the archives so it's all good.
Since I wrote my response, I've implemented an "Always Log" use case by
extending the Level class:
Hi Antoine
I dont have an example how to deal with new levels but annother point is
important while wrapping. You have to use the overloaded method log(String
callerFQCN, Priority level, Object message, Throwable t) where you pass as
first parameter the name of the wrapper class. The renderer w
Hi Jake,
Thanks. The way you have suggested is another good way. But my problem
is little different. I want to use a system variable in the path of log
file. If I do using your method, it will still be a hardcoded path
because once I code it in the ServletContextListener, I can not change
it on th
Actually, I need to have something like :
---
logger.harmless("my message", "ERROR CODE", "PARAM2");
logger.minor("my message", "ERROR CODE", "PARAM2");
-
in the log4j-1.2.8.jar, there is a dtd present at
org/apache/log4j/xml/log4j.dtd
--
Nigel Byrnes
RBS Insurance
0845 878 2911
Dave Pawson
15 matches
Mail list logo