SocketAppender issue

2003-07-18 Thread Satrasala, Sudhakar
Hi, I am using Socket Appender and SocketServer (on the server side) for doing remote logging. How can I create separate log files on the server side based on the Logger that is generating the event? Has anybody tried doing this? Do I need to overwrite the SocketNode class? Please help.

RE: SocketAppender issue

2003-07-18 Thread Thomas Muller
Sudhakar, The javadoc for org.apache.log4j.net.SocketServer clearly states that you may have a configuration file for each client that connects to it, and if not present a generic configuration file is applied. Hope this helps, -- Thomas | -Original Message- | From: Satrasala,

Reading events

2003-07-18 Thread Nijjhar, Baljeet
Hi Does anyone know if there are any methods to read back a log record once it has been written to an appender? In general, does anyone have any bright ideas for being able to store logs in a persistent store such that they can be read back as objects (LoggingEvents or whatever), and therefore be

RE: Reading events

2003-07-18 Thread Thomas Muller
The LoggingEvent implements the java.io.Serializable interface, so you're free to dump it to any storage media of your discretion and read it back as a java object. The SocketAppender uses this technique already; the LoggingEvents are serialised and streamed over a socket to a SocketServer. It's

RE: Reading events

2003-07-18 Thread Nijjhar, Baljeet
Hi, I've heard things about using serialisation such as it's not the same from one JDK version to another which makes me wonder if it should be avoided for maintenance/compatibility reasons. I wouldn't even know what the issues are with storing and organising serialised data, as I know very

RE: Reading events

2003-07-18 Thread Milind Rao
Absolutely right. Never use serialisation for persistence. If the code changes and the reader/writer are not in sync, then there will be failure while reading the data. Worse, since it's binary, there isn't a whole lot you can do other than back off to the version of code prior to the

Rendering an object based on the appender

2003-07-18 Thread Milind Rao
Is it possible to render an object differently for different appenders? When I render to a file, I use XML. This is very difficult to read on the console. On the console, I'd like to use only a small subset of the elements without the tags. In the properties file, what I can do now is

RE: Help with RMI

2003-07-18 Thread Simple Mortal
Thanks gurus (Luis -n- Thomas ) That oughtaa get me started ;-). I'll try it out. Regards SimpleMortal - Original Message - From: Thomas Muller [EMAIL PROTECTED] Date: Wed, 16 Jul 2003 19:16:32 +0100 To: Log4J Users List [EMAIL PROTECTED] Subject: RE: Help with RMI Simple, There

Log4J admin web app

2003-07-18 Thread Doyle, Jim
Hi, I've been investigating different ways to maintain the Log4J configuration in a running app server, and was pretty pleased to see the org.apache.log4j.servlet.ConfigurationServlet in the jakarta-log4j-sandbox CVS module. But I'd read on a different mailing list thread (RE: [ANNOUNCE] Log4J

RE: Log4J admin web app

2003-07-18 Thread Shapira, Yoav
Howdy, But I'd read on a different mailing list thread (RE: [ANNOUNCE] Log4J web interface) that the servlet lets you reload entire configurations. Trying out the servlet and reading the source, it doesn't seem to have that feature. I only see the ability to modify levels for existing loggers.

RE: Log4J admin web app

2003-07-18 Thread Mark Womack
Yoav has already covered the salient points. I just want to add that we were looking to move the initialization code out of the InitServlet and InitContextListener classes and into a common utility class. Once this is done, then adding the ability to reload/reset to a configuration file in the

LogFactor5 basic difficulties

2003-07-18 Thread Jason Friedlander
When trying to run any of the example programs, I receive this message, does anyone have any idea why? I'm running log4j 1.2.8 and jvm 1.4.1_03. thanks in advance, jason C:\java examples.lf5.InitUsingPropertiesFile.InitUsingPropertiesFile Exception in thread main java.lang.NoSuchMethodError:

messages not written

2003-07-18 Thread Zoltan Grose
This is a follow-up to an earlier post. To recap, logger.isDebugEnabled() is true only part of the time. I've been doing some debugging and I've got some extra info, hopefully someone can tell me what is going on. My class, MemberQuery, has a logger.isDebugEnabled statement that returned true

Re: Problems with WebSphere 5.0 on Win2K

2003-07-18 Thread Thomas Lionel SMETS
I think the questions you have to reply are : 1°. Is the log4J.jar part of your war / ear / ... ? I would thnk not the ClassLoader is forbidden by the Security manager to read a file outside his archive. 2°. Otherwise is the log4j.jar well published in the MANIFEST file ? 3°. Were is

RE: Log4J admin web app

2003-07-18 Thread Doyle, Jim
Yoav, Mark, Thanks for the feedback, now I'm on the same page as everyone else. The features provided by the ConfigurationServlet now (listing Loggers and letting you change their priorities) is probably good enough for what our admins need. So I probably won't attempt to enhance it right now,

Question on configuration

2003-07-18 Thread Haidri, Baquera
Hi, I'm using log4j to do the logging for my Struts webapp. I'm getting a whole lot of Struts messages logged to my file and I only want the messages that my classes create. I tried the following in my log4j.properties file: #config file for logger log4j.rootLogger=DEBUG, A1

RE: Log4J admin web app

2003-07-18 Thread Paul Smith
Hi Jim, We've been doing a lot of JMX stuff for our app at work, and I'm hooked. Let me know what you're thoughts are, as I'd love to be part of the discussion too, as I am keen to be able to manage the Log4j stuff for our app via JMX. cheers, Paul Smith -Original Message- From: Doyle,