On Fri, 5 Oct 2001 05:34, Boris Garbuzov wrote:
> Hello. Can I ask for some general materials on LogKit subproduct? 

I think you will have to be more specific with your request. The website 
jakarta.apache.org/avalon/logkit has a whitepaper that describes the basics 
of LogKit if that helps.

> May be a couple of words as to relation to Log4j will be useful.

different projects doing the same thing different ways. LogKit has an 
emphasis on speed, security and use in a serverside environment. LogKit tries 
to enforce safety by limiting access to Logger trees. Only children of 
current logger can be accessed unless you have Hierarchy object in which 

> Finally, I have the
> following concrete problem. The following code produces node list with
> entries wrapping my messages into "<![CDATA[...". What is the easiest way
> to get rid of those wrappers and to have my output a valid XML with a root
> tag? 

Well it is expected that you include my.xml.log in another file with a top 
level element. The reason for this is to make it more difficult to end up 
with a invalid XML tree if the logging shuts down uncleanly. So you would do 
something like

<?xml version="1.0" ?>

<!DOCTYPE logentrys [<!ENTITY logdata SYSTEM "my.xml.log">]>

<logentrys>
  &logdata;
</logentrys>

To remove CData wrapper you would need to create a new formatter that is 
basically a copy of XMLFormatter but writes it out in format you want. 
(However I wouldn't recomend this as then a log statement could break your 
xml file.

-- 
Cheers,

Pete

------------------------------------
The two secrets to success:
   1- Don't tell anyone everything.
------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to