Re: How do receivers work?

2008-02-19 Thread bakermatt
This is an extremely noob question but how do I setup my logFormat if my message looks like this: 19 Feb 2008 14:10:32,001 INFO DataCollectorTestAppender [main][]: LogMonitor - CanCaptureLogEvent Where: 19 Feb 2008 14:10:32,001 = TIMESTAMP INFO = LEVEL DataCollectorTestAppender = LOGGER [main

Re: How do receivers work?

2008-02-19 Thread Paul Smith
On 20/02/2008, at 11:32 AM, bakermatt wrote: Ok, So I got it so that the LoggingEvents get dispatched to my Appender but ALL of the Events get posted there, even the INFO and DEBUG events coming from the Receiver itself. How can I isolate the incoming messages from the messages being ge

Re: How do receivers work?

2008-02-19 Thread bakermatt
Ok, So I got it so that the LoggingEvents get dispatched to my Appender but ALL of the Events get posted there, even the INFO and DEBUG events coming from the Receiver itself. How can I isolate the incoming messages from the messages being generated internally? Also, I am setting the LoggerRepo

Re: How do receivers work?

2008-02-19 Thread bakermatt
Paul, I thought this was how it worked but was getting extremely confused when trying to mimic what was going on inside Chainsaw with the interaction between ChainsawAppender and ChainsawAppenderHandler. I have a DataCollector class with an instance of a Receiver (the receiver it's interested in

Re: How do receivers work?

2008-02-19 Thread Paul Smith
I've spent the last couple weeks attempting to work the the Apache Receivers but to no avail. Could someone explain to me exactly how you get the LoggingEvents out of a receiver once they arrive? A Receiver 'posts' the received LoggingEvent into the local log4j system just as if the thing

How do receivers work?

2008-02-19 Thread bakermatt
Hi, I've spent the last couple weeks attempting to work the the Apache Receivers but to no avail. Could someone explain to me exactly how you get the LoggingEvents out of a receiver once they arrive? Thanks, Matt -- View this message in context: http://www.nabble.com/How-do-receivers-work--tp

Re: Parsing problem

2008-02-19 Thread Jim Reilly
Try the xml below. A few problems. The renderer tag needs to be empty (per DTD), so need to close the tag in same tag (not use a ). Also I think order matters, so need to keep in this order: renderer*, appender*,(category|logger)*,root?, categoryFactory? -Jim

Parsing problem

2008-02-19 Thread osubb
I seem to get warning whenever log4j configure file is loaded. I looked at my config file and can see no syntax problems. Can somebody point me in the right direction??? WARNINGS* log4j:WARN Continuable parsing error 50 and column 13 log4j:WARN The content of element type "renderer" mu

Re: How to prevent log messages from superclass

2008-02-19 Thread Curt Arnold
On Feb 19, 2008, at 12:18 PM, icet wrote: Hello, I activated logging for my class, and suddenly all of its supperclass messages are being logged as well! I belive this is the expected behaviour, but can I disable this? My class public class ExampleA extends ExampleB { private static

How to prevent log messages from superclass

2008-02-19 Thread icet
Hello, I activated logging for my class, and suddenly all of its supperclass messages are being logged as well! I belive this is the expected behaviour, but can I disable this? My class public class ExampleA extends ExampleB { private static final Logger logger = Logger.getLogger(ExampleA.c

Re: java.security.AccessControlException

2008-02-19 Thread Jerome Curlier
Such problem usually occurs if an application tries to access some resources but it has no rights to access them due to Tomcat security. http://tomcat.apache.org/tomcat-4.1-doc/security-manager-howto.html. jerome - Original Message From: yemeth . <[EMAIL PROTECTED]> To: Log4J Users List

Re: java.security.AccessControlException

2008-02-19 Thread yemeth .
Hi! no change, even if I chmod 777 such file, change its owner to tomcat5, group to nogroup (like the rest of logs) etc. That is why I am completely puzzled with this problem. thanks! On 19/02/2008, Martyn Hiemstra <[EMAIL PROTECTED]> wrote: > > What happens when you exeecute the following comma

Re: java.security.AccessControlException

2008-02-19 Thread Martyn Hiemstra
What happens when you exeecute the following command: touch /var/log/tomcat5/cosa.log Martyn Hi! I'm trying to port a complex website from Tomcat4 to Tomcat5, and log4j is the place where I've found most of the problems. In the specific sub-section from JAVA_HOME/ I have a web.xml file with the

java.security.AccessControlException

2008-02-19 Thread yemeth .
Hi! I'm trying to port a complex website from Tomcat4 to Tomcat5, and log4j is the place where I've found most of the problems. In the specific sub-section from JAVA_HOME/ I have a web.xml file with these log4j related entries: log4j-init /usr/share/tomcat5/webapps/ecumercado/WEB-IN

RE: Logging events in Applet to server using log4j?

2008-02-19 Thread Ruchi Mishra
Hi, I think you need to write a policy fie for it which grants security permission to the java files,I faced this problem in RMI implementation. Regards Ruchi -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 4:02 PM To: Log4J Users List Subj

Re: Logging events in Applet to server using log4j?

2008-02-19 Thread Paul Smith
This isn't really a log4j question, because it is because your applet is running in the browser sandbox, and has no permission to create a Socket to any other host other than the host it was launched from. You'll need to configure the applet to run out of the sandbox; effectively granting i

Logging events in Applet to server using log4j?

2008-02-19 Thread AbelMacAdam
Hi all, At the moment I want to enable logging from an Applet to a file on the server. If I have interpreted the documentation correctly, I should use the SocketAppender. But my configuration resulted into an AccessControlException: log4j: Setting property [remoteHost] to ["123.45.67.89"]. log4j

Exception in getAllFonts

2008-02-19 Thread Orlovsky Alexander
Hello! I downloaded "Unix/Dos Standalone" Chainsaw distributive from this site. At next step i unpack it in my's "Linux Fedora" and said: $ export DISPLAY=localhost:0.0 # because I'm using Cygwin X Server(WinXP) $ ./chainsaw.sh Result is: Exception in thread "main" java.lang.UnsupportedOperationEx