Re: Adding new tags to log4j XML configuration file

2006-12-19 Thread Takacs Bence
Hello I made a logserver too, and looking for a solution for merging my configurations and the standard log4j configuration for the logserver. So I'd like to modify the log4j config schema or dtd too. What did you find out about it? Thanks: Bence Mattias Andersson wrote: Hi, I'm

Re: creating log files which are readable for Chainsaw

2006-12-18 Thread Takacs Bence
Thanks, I've solved the problem. It seems that both the SocketAppender and the XmlAppender needs to turn on the LocationInfo in their config files to send and catch the LocationInfo... Bence Scott Deboy wrote: Add a consoleappender to the socketserver config which prints line, method, etc.

Re: creating log files which are readable for Chainsaw

2006-12-14 Thread Takacs Bence
Well, I've checked my Log config on the clients and found: log4j.appender.tcp.LocationInfo=true So, the SocketAppender sets the LocationInfo for Logging event before serializing. But until serializing the varibles become null because they are transparent... May I misunderstood something? Is

Re: creating log files which are readable for Chainsaw

2006-12-14 Thread Takacs Bence
Well, I've checked my Log config on the clients and found: log4j.appender.tcp.LocationInfo=true So, the SocketAppender sets the Locationinfo for Logging event before serializing. But until serializing the varibles become null because they are transparent... May I misunderstood something? Is

Re: different config files for different tomcat applications

2006-08-17 Thread Takacs Bence
implementation for service x.y Does anybody know something about hivemind? Does it make its own implementation of services really? Because this is my only explanation for the phenomena written above. Jacob Kjome wrote: Quoting James Stauffer [EMAIL PROTECTED]: On 8/15/06, Takacs Bence [EMAIL

lifesigns

2006-08-16 Thread Takacs Bence
Hello Is there a possibility for listerning to an application's 'lifesign'? I mean: send an email or other message, if there is no log from that application in the recent 10 minutes? Thanks: Bence - To unsubscribe,

network using appenders when network is down

2006-08-16 Thread Takacs Bence
Hello Our servers have small storage, so I don't want to use FileAppender. What can I do if the LAN is down and my appender wants to send an email or send a Socket message? The buffer will be deleted if the server will reboot, and additionally I don't know what is the physical limit for

Re: network using appenders when network is down

2006-08-16 Thread Takacs Bence
a possible solution for not lossing messages in case of LAN being down would be to use an other appender (FileAppender) in such cases. Either you check if there is network connection and continue as usually, if there is, or use a FileAppender in case of a problem, either you subclass the

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
Try running with -Dlog4j.debug. That should give you more info about the problem. Where should I put this switch? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
ask them. Jake Quoting James Stauffer [EMAIL PROTECTED]: Try running with -Dlog4j.debug. That should give you more info about the problem. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
Takacs Bence wrote: Try running with -Dlog4j.debug. That should give you more info about the problem. Where should I put this switch? Maybe when I run Catalina? - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
log4j.properties and log4j.jar someplace that tomcat can see them but not the apps (server?). On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote: No log4j.xml, and only the two log4j.properties: - one in the /tomcat/shared/classes for tomcat inner logs - one in the /tomcat/common/classes for tomcat

Re: problems with SMTPAppender under tomcat

2006-08-14 Thread Takacs Bence
config? How can I tell them? Thanks: Bence You said, that I can use James Stauffer wrote: I don't understand your question. How what? How to use separate config files? On 8/11/06, Takacs Bence [EMAIL PROTECTED] wrote: OK, but technically how? from config file? can the config file

different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app will use a separate config file. I deleted the common

xml vs. properties

2006-08-14 Thread Takacs Bence
Hello Why everybody use xml file instead of properties file? It's twice as much typing as the properties file... Does it have any additional function? Or is there a kind of editor which makes it easier to use? Thanks: Bence

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
registry server-registry.xml at classpath resource and recently tomcat has crashed twice... Thanks: Bence Takacs Bence wrote: Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat

tomcat with log4j?

2006-08-14 Thread Takacs Bence
Hello I'm using log4j, but tomcat seems to use the sun java logger. Are there any way to catch its logs, or make it use log4j instead? Thanks: Bence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
James Stauffer wrote: Did you move log4j.properties also? You will need to do that too. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I _only_ moved log4j.properties from shared/classes to two different webapps/app/WEB-INF/classes directory. In other words I deleted the original file and made two different

problems with chainsaw

2006-08-11 Thread Takacs Bence
Hello I've tried to use chainsaw with zeroconf. I put the jars into the projects Build Path, and attached the zeroconf appender to the project. It throw the following exception: Aug 11, 2006 12:15:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat

Re: problems with chainsaw

2006-08-11 Thread Takacs Bence
the following lines in the log4j.properties file: log4j.logger.hu.watt22.wde22.cc=DEBUG, zeroconf log4j.appender.zeroconf=org.apache.log4j.net.ZeroConfSocketHubAppender And use Java Web Start Chainsaw with the SocketReceiver on Port 445. Is it enough? What else do I need? Thanks: Bence Takacs Bence

Re: problems with SMTPAppender under tomcat

2006-08-11 Thread Takacs Bence
and activation.jar. You don't want to have 2 copies of the same jar in the classpath twice. On 8/11/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello I've found a solution on the net: Deleted all tomcat projects includes the mail.jar, and copied the mail.jar and activation.jar to the /tomcat/shared/lib

Re: problems with SMTPAppender under tomcat

2006-08-11 Thread Takacs Bence
that to happen then you can use separate configs per project. If you want all projects to use the same config then you are grouping them together logically. (Note the spelling of project.) On 8/11/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello The projekt uses the configuration, but has

Chainsaw

2006-08-11 Thread Takacs Bence
Hello Could somebody suggest me a way to try Chainsaw? (appender, appender config, and chainsaw config) I've tried the zeroconf thing on the website, and didn't worked. Could it be the problem, that I runned both my application and Chainsaw in the localhost? Thanks: Bence

Re: problems with SMTPAppender under tomcat

2006-08-11 Thread Takacs Bence
meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app will use a separate config file. On 8/11/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello If you don't

Re: Chainsaw

2006-08-11 Thread Takacs Bence
- From: Takacs Bence [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 8:53 AM To: Log4J Users List Subject: Chainsaw Hello Could somebody suggest me a way to try Chainsaw? (appender, appender config, and chainsaw config) I've tried the zeroconf thing on the website, and didn't worked

Re: problems with SMTPAppender under tomcat

2006-08-11 Thread Takacs Bence
OK, but technically how? from config file? can the config file make a reference to an other config file? what is the syntax of this command? Thanks: Bence James Stauffer wrote: On 8/11/06, Takacs Bence [EMAIL PROTECTED] wrote: If you want all projects to use the same config

Re: Different Log4j log file(s) based on Logging Level?

2006-08-11 Thread Takacs Bence
According to the documentation you need to make your own MyLevel class and extends the original Level. But I haven't done it yet, and don't know if it's enough or not and how much additional work you need. Madduri, Murthy wrote: logger name=com.logging.test !--