logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Thielen" <d...@thielen.com>
Subject Re: logging an xml document
Date Thu, 04 Apr 2002 23:23:24 GMT
That's what I'm doing - but it bothers me to go to a text stream and then
write that stream. Oh well - it only happens if logging is on.

thanks - dave


----- Original Message -----
From: "Bobby Nations" <bwnations@fedex.com>
To: "Log4J Users List" <log4j-user@jakarta.apache.org>
Sent: Thursday, April 04, 2002 4:02 PM
Subject: Re: logging an xml document


> Dave,
>
> Why not just read the file in as a bunch of strings and then send them
> to the log?  Or, if you've already got the file in memory, then craft
> some way to convent the element to a giant String and then log it.
>
> Hope this helps,
>
> Bobby
>
>
> David Thielen wrote:
>
> >I don't want the log in xml format - I want to write the contents of an
xml
> >file to the log - which is in text format.
> >
> >thanks - dave
> >
> >
> >----- Original Message -----
> >From: "Collier, Mike" <Mike_Collier@stercomm.com>
> >To: "'Log4J Users List'" <log4j-user@jakarta.apache.org>
> >Sent: Thursday, April 04, 2002 2:43 PM
> >Subject: RE: logging an xml document
> >
> >
> >>You could set your Appender to use XMLLayout for the layout.
> >>
> >>-----Original Message-----
> >>From: David Thielen [mailto:dave@thielen.com]
> >>Sent: Thursday, April 04, 2002 4:24 PM
> >>To: Log4J Users List
> >>Subject: logging an xml document
> >>
> >>
> >>Hi;
> >>
> >>I want to log an xml Document. Is there any simple way to do this? The
xml
> >>DOM classes provide an easy way to write a text representation to a
> >>
> >stream -
> >
> >>but I don't see any way to get the stream(s) the logger uses.
> >>
> >>????? - thanks - dave
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> ><mailto:log4j-user-unsubscribe@jakarta.apache.org>
> >
> >>For additional commands, e-mail:
> >>
> ><mailto:log4j-user-help@jakarta.apache.org>
> >
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
<mailto:log4j-user-help@jakarta.apache.org>
> >
> >
>
> --
> Sr. Programmer / Analyst
> FedEx Services
> 20 FedEx Parkway
> Collierville, TN  38017
> (901) 263-6517
>
>
>


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message