It's known that log4j has a good performance even 'on an AMD Duron clocked
at 800Mhz running JDK 1.3.1' machine.
If I have lot of appenders, for example, a socket appender, which will cost
0.1 second to communicate with the socket server, and there's still a file
appender in the system all the sam
It's one of the most funny mail dialogues I have seen :)
Good Job, Jake!
BR
Xi Yuxiang
Nov. 18th, 2003
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: 2003年11月18日 9:19
To: Log4J Users List
Subject: Re: Revamp: App-server independent log4j logging
At 01:16 PM 11/17/2
Hi, Andreas
New a Throwable() will create the full stack trace information in the
throwable instance. The log4j parse the stack trace and get the
LocationInformation. But it's of no use to the class in the same package
with LoocationInfo(or LogEvent)
It's heavy burden to create lots of exceptions
If you change
static Logger logger = Logger.getLogger(Sort.class.getName());
to
static Logger logger = Logger.getRootLogger();
you will see 'setEncoding called.' in the console.
-Original Message-
From: KUROSAKA Teruhiko [mailto:[EMAIL PROTECTED]
Sent: 2003年10月30日 15:36
Users List
Subject: Re: can log4j configuration file be sepearted into two...n files?
On Wed, 2003-10-22 at 19:58, Yu Xiang Xi (Maveo) wrote:
> Hello
>
> I have a question on the separation of log4j configuration file.
Use the XML property file format and declare external entit
Hello
I have a question on the separation of log4j configuration file.
As in a web application, I try to assemble all the customer changeable
properties (for example the log file location) into one file -
customer.properties.
The customer can decide where to log file can be placed, by changin
Hi, this is a combination question about both log4j and struts.
For the MDC is managed on a per thread basis, we can use it to log the user
IP address in the web application.
While, as I remember, struts action class is designed to be thread-safe.
If I try to log the user IP address in the execute
How do you initial a logger in your java code?
It will use different loggers depends on that.
Anymore, the below parameters are useful for config that.
log4j.additivity.database=false/true
Best Regards
Xi Yuxiang
System Architect
Maveo Systems Limited
--
Wow, if you do declare a logger by getRootLogger, you will lose the ability
to config different loggers for different module in the application.
Best Regards
Xi Yuxiang
System Architect
Maveo Systems Limited
-
This e-mail, includi
-Original Message-
From: Yu
Setting Threshold=ERROR can force log4j to log the higher priority loggings
of ERROR & FATAL, as demonstrated by Adrian Janssen said below.
But I'm wondering to know if there's a way to log only ERROR loggings, no
FATAL in one appender. That is, one appender to log only one level; not to
log one l
I have seen different usage of initial log4j instance like below
private final static Logger logger = Logger.getLogger("some.name");
and
private final transient static Logger logger =
Logger.getLogger("some.name");
the second one has a additional keyword transient.
Which way is recommended
Log4j has provided the interface org.apache.log4j.spi.LocationInfo.java,
which give us the chance to get where log event delivers from.
For example, if we use
log4j.appender.Console.layout.ConversionPattern=%l %m%n
We can get information like below on the console screen
JAVA DEBUG t
There's a console appender, which will output log information to the
console.
If you are running it in linux, you could output the console information to
a file.
Best Regards.
Xi Yuxiang
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: 2003年7月3日 15:22
To: Log4J U
If you set the log level to OFF, that is the same to null appender.
Best Regards.
Xi Yuxiang
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 2003年6月18日 20:54
To: Log4J Users List
Subject: RE: NullAppender for Download
Howdy,
>I'm using log4j in my JSP project,
Actually, there's no difference in using log4j in JSP.
Just add the log code in your JSP scripts.
Like
logger.debug("your.message");
-Original Message-
From: Scott Burns [mailto:[EMAIL PROTECTED]
Sent: 2003年6月18日 10:59
To: Log4J Users List
Subject: Log4j within JSP
Any Suggestions for
16 matches
Mail list logo