Oliver Burn | 1 May 2002 04:22
Gravatar

Re: Chainsaw improvements

Hi Sam,

There is certainly interest in developing Chainsaw further. Please
see http://www.mail-archive.com/log4j-dev <at> jakarta.apache.org/msg01730.html
for some of my thoughts on how Chainsaw can be developed further.

I am curious as to which version of Chainsaw you are using? The
version that is part of log4j supports loading trace files that
are created using the XMLLayout.

Your involvement would be great. Feel free to email me directly or
via the mailing list (as appropriate). Ideas and thoughts are great,
patches are sublime. :-)

Regards,
Oliver

> Hi,
> 
> I'm interested in doing work on Chainsaw.  At my last
> job at Intel I developed a trace system similar to
> log4j (writing/appending to a log file or sending UDP
> trace messages) and created a UI for monitoring the
> UDP messages or loading/saving trace files.  My UI
> system had dynamic filtering by error levels and
> modules.  In addition it had user defined color coding
> for the different files (each trace message could be
> sent with a module and file name).  It also grouped
> error messages into a tabbed pane that was deliniated
> by the sending IP address or file.
(Continue reading)

EXT-raul.viloria-santos | 3 May 2002 10:30
Picon

xml configuration problem

Hi all,

   I'm using log4j1.1.3 and I'm trying to make a subclass to the Category class to log a different message, just
to add something to the message. I made MyCategory class quite similar to the example given and I made
MyCategoryFactory as well, but when I instantiate it in the main program it gives me an error message
(ClassCastException) if the class name matches the category name in my .xml config file. What should I
do?. It only works if it doesn't match any category. Then it uses the root part of the .xml file and not the
category part that I want. I've read somewhere that i must set the factory in the config file, then I ask:

How do I set the category in a .xml file?
Should I put MyCategory instead of Category in my .xml configuration file?
Do I need to put some extra things in my main code or in my .xml file?

This is my .xml file:

	<category name="helloworld.hw_log" additivity="false">
		<priority value="error"/>
		<appender-ref ref="JDBC" />
	</category>

	<root>
		<priority value="fatal"/>
		<appender-ref ref="SYSTEMOUT" />
	</root>

Thank you all.

Raúl
Aashish_Nadkar | 3 May 2002 17:30

Query - Create new Levels and implement it


Hi

I have a problem in log4j.  I am using version 1.2rc.
I need to create new levels and implement them.  I am able to sub class Level
class and create new level.
But implement the code for logging the messages for the new level is a problem.

Can you give me a sample code for the same?

Thanks and Regards

Aashish

---------------------------------------------------------------------------------------------------------------------------

This email message (including any attachment) is confidential and may be legally
privileged.
It is intended solely for the addressee. If you are not the addressee, you may
not disclose it, copy it, distribute it or take or omit to take any action on
foot of it. Any such act or omission is prohibited and may be unlawful. This
message (including any attachment) is transmitted for discussion purposes only.
It is protected by copyright laws and it has no other legal or contractual
standing.

---------------------------------------------------------------------------------------------------------------------------

This email message (including any attachment) is confidential and may be legally
privileged.
It is intended solely for the addressee. If you are not the addressee, you may
(Continue reading)

Rob Mitchell | 3 May 2002 14:57
Picon

Using browser to view XMLLayout log file?

Hi,

Here's my log file contents:
<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749111" priority="INFO" thread="main">
<log4j:message><![CDATA[1st hello world: 1]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749111" priority="INFO" thread="main">
<log4j:message><![CDATA[1st hello world: 2]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749151" priority="INFO" thread="main">
<log4j:message><![CDATA[1st hello world: 3]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749172" priority="WARN" thread="main">
<log4j:message><![CDATA[2nd hello world: 4]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749202" priority="WARN" thread="main">
<log4j:message><![CDATA[2nd hello world: 5]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749202" priority="WARN" thread="main">
(Continue reading)

Michael Agroskin | 3 May 2002 16:54
Favicon

Re: Using browser to view XMLLayout log file?

Couple mistakes. You have to specify the namespace "log4j"  because you are
using the namespace prefix.

And another mistake. Your XML is missing the top object so the Web browser
won't show it anyway .

In order to be viewed in the web browser, it should look something like
this:

<?xml version="1.0"?>
<TopObject  xmlns:log4j="http://URL">
<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749111" priority="INFO" thread="main">
<log4j:message><![CDATA[1st hello world: 1]]></log4j:message>
</log4j:event>

<log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory"
timestamp="1020341749111" priority="INFO" thread="main">
<log4j:message><![CDATA[1st hello world: 2]]></log4j:message>
</log4j:event>
</TopObject>

where "TopObject" could be any name ("Log", "List", "Document", or anything
else) , and URL should point to the "log4j" datadictionary (description of
all tags).

Or you can include the datadictionary in the beginning of the file and call
it "log4j". Or you can get rid of "log4j" prefixes, then you won't need
"xmlns" at all:

(Continue reading)

Max Rydahl Andersen | 3 May 2002 18:18
Picon

LogFactor5

Hello log4j-devels,

Anyone working on extending LogFactor5 to have text filtering as
powerfull as those available in Chainsaw ?

I'm very close (read: in the next week) to be able to deliver a simple patch that extends
LogFactor5 with a small panel that allows one to enter text for NDC,
thread, message, exception etc. which would be used to filter the logentries (very similar to
the patch I once made to Lumbermill a few months back - if anyone have noticed that on
sourceforge :)

Do you want this patch ?

--

-- 
Best regards,
 Max                            mailto:max <at> eos.dk
Mark Womack | 3 May 2002 19:31

RE: LogFactor5

Max,

I think we would all love to accept and review whatever patches you want to
submit.  I know that I find the Chainsaw filtering invaluable.

Things are still waiting for 1.2 to finish up and release before the new
stuff goes forward.  And there is some needed discussion about the Chainsaw
& LogFactor5 clients that needs to happen.  Right, guys?

-Mark

> -----Original Message-----
> From: Max Rydahl Andersen [mailto:max <at> eos.dk]
> Sent: Friday, May 03, 2002 9:18 AM
> To: Log4J Developers List
> Subject: LogFactor5
> 
> 
> Hello log4j-devels,
> 
> Anyone working on extending LogFactor5 to have text filtering as
> powerfull as those available in Chainsaw ?
> 
> I'm very close (read: in the next week) to be able to deliver 
> a simple patch that extends
> LogFactor5 with a small panel that allows one to enter text for NDC,
> thread, message, exception etc. which would be used to filter 
> the logentries (very similar to
> the patch I once made to Lumbermill a few months back - if 
> anyone have noticed that on
(Continue reading)

BMarlborough | 3 May 2002 21:31

Re: LogFactor5


Greetings all,

First off, thanks for the vote of confidence on adding me to the Log4j
committers list.  I look forward to working with you all in the future.
Regarding the patch for LogFactor5...there already is some built in text
filtering for NDC in place as wells as text searching for NDC and Message.
Have a look under the Edit menu.  Adding new filters for thread and
exception will be a piece of cake if you follow the filtering model inside
LogFactor5.  If you have any questions or need any help implementing the
patch, feel free to contact me.

Cheers,

Brad

Brad Marlborough
ThoughtWorks, Inc. -- The art of heavy lifting(SM)
http://www.thoughtworks.com

                                                                                                                                       
                      Max Rydahl                                                                                                       
                      Andersen                 To:       "Log4J Developers List" <log4j-dev <at> jakarta.apache.org>                        
                      <max <at> eos.dk>             cc:                                                                                     
                                               Subject:  LogFactor5                                                                    
                      05/03/2002 10:18                                                                                                 
                      AM                                                                                                               
                      Please respond to                                                                                                
                      "Log4J Developers                                                                                                
                      List"                                                                                                            
(Continue reading)

Jason Poley | 4 May 2002 03:02

Memory based config

I have a question  regarding the log4j properties file.  Is there any
current way (or plans to) have a means of storing the config settings in
memory and editing them on the fly (instead of having to edit the
properties file and wait for a reload?)

This is functionality that I would like to use, and was wondering if there
was anyone else who would need/want this.

-jason
Mark Womack | 4 May 2002 01:57

RE: Memory based config

Jason,

Can you give a specific example of how this would work?  You can do just
about everything in code that you can from the configuration file, so what
is it you are looking for?  You want something that will write out the
current settings to a file?

-Mark

> -----Original Message-----
> From: Jason Poley [mailto:jpoley <at> poley.com]
> Sent: Friday, May 03, 2002 6:02 PM
> To: log4j-dev <at> jakarta.apache.org
> Subject: Memory based config
> 
> 
> I have a question  regarding the log4j properties file.  Is there any
> current way (or plans to) have a means of storing the config 
> settings in
> memory and editing them on the fly (instead of having to edit the
> properties file and wait for a reload?)
> 
> This is functionality that I would like to use, and was 
> wondering if there
> was anyone else who would need/want this.
> 
> -jason
> 
> 
> --
(Continue reading)


Gmane