RE: Log4j within JSP

2003-06-17 Thread Yu Xiang Xi (Maveo)
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: 2003618 10:59 To: Log4J Users List Subject: Log4j within JSP Any Suggestions for

RE: NullAppender for Download

2003-06-18 Thread Yu Xiang Xi (Maveo)
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: 2003618 20:54 To: Log4J Users List Subject: RE: NullAppender for Download Howdy, I'm using log4j in my JSP project,

RE: can't get log4j under tomcat working

2003-07-03 Thread Yu Xiang Xi (Maveo)
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: 200373 15:22 To: Log4J

Questions on Log4J LocationInformation

2003-09-26 Thread Yu Xiang Xi (Maveo)
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

Questions on initial log4j instance

2003-09-29 Thread Yu Xiang Xi (Maveo)
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?

RE: log4j.properties - How to parse outpu to multiple files

2003-10-09 Thread Yu Xiang Xi (Maveo)
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

RE: log4j.properties - How to parse outpu to multiple files

2003-10-09 Thread Yu Xiang Xi (Maveo)
/ appender-ref ref=INFO/ appender-ref ref=WARN/ appender-ref ref=ERROR/ /root /log4j:configuration -Original Message- From: Yu Xiang Xi (Maveo) [mailto:[EMAIL PROTECTED] Sent: October 9, 2003 5:07 AM To: 'Log4J Users List' Subject: RE: log4j.properties - How

RE: Nested Diagnostic Context

2003-10-09 Thread Yu Xiang Xi (Maveo)
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,

RE: Problem with multiple appenders.

2003-10-14 Thread Yu Xiang Xi (Maveo)
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

Mapped Diagnostic Context in Struts Action Class

2003-10-22 Thread Yu Xiang Xi (Maveo)
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

can log4j configuration file be sepearted into two...n files?

2003-10-22 Thread Yu Xiang Xi (Maveo)
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

RE: can log4j configuration file be sepearted into two...n files?

2003-10-23 Thread Yu Xiang Xi (Maveo)
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 entities at the top. ?xml version=1.0

RE: How do I set the character encoding ?

2003-10-30 Thread Yu Xiang Xi (Maveo)
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: 20031030 15:36

RE: LoggingEvent.locationInfo

2003-11-04 Thread Yu Xiang Xi (Maveo)
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

RE: Revamp: App-server independent log4j logging

2003-11-17 Thread Yu Xiang Xi (Maveo)
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: 20031118 9:19 To: Log4J Users List Subject: Re: Revamp: App-server independent log4j logging At 01:16 PM

Thinking about log4j performance

2003-12-11 Thread Yu Xiang Xi (Maveo)
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