Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11068
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Logging Question |
| Date | Wed, 04 Jan 2012 11:43:12 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 42 |
| Message-ID | <je1v79$o71$1@dont-email.me> (permalink) |
| References | <Xns9FCCA78288290jpnasty@94.75.214.39> <9102298.933.1325372035497.JavaMail.geo-discussion-forums@prj1> <Xns9FCCD5AF3DFF0jpnasty@94.75.214.39> <jdoiob$phd$1@dont-email.me> <Xns9FCD791489D5jpnasty@94.75.214.39> <XML-logger-20120101123319@ram.dialup.fu-berlin.de> <jdpkvp$jgd$1@dont-email.me> <QF5Mq.54294$cN1.19557@newsfe12.iad> <alpine.DEB.2.00.1201031525230.2163@urchin.earth.li> <jdv9ja$h2q$1@dont-email.me> <alpine.DEB.2.00.1201041440320.2163@urchin.earth.li> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 4 Jan 2012 16:36:58 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="24801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7SPOF0Wg0nCvc5ApoRg+m/vlHaJ9bVcQ=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 |
| In-Reply-To | <alpine.DEB.2.00.1201041440320.2163@urchin.earth.li> |
| Cancel-Lock | sha1:9ILgcDZ77kJPHurj1jwq0QSJ+BQ= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11068 |
Show key headers only | View raw
On 01/04/2012 09:42 AM, Tom Anderson wrote: > On Tue, 3 Jan 2012, Jeff Higgins wrote: > >> On 01/03/2012 10:33 AM, Tom Anderson wrote: >>> On Sun, 1 Jan 2012, Arved Sandstrom wrote: >>> >>>>> On 01/01/2012 06:33 AM, Stefan Ram wrote: >>>>> >>>>>> But an XML file needs to have one single root element that has an >>>>>> end tag at its end. A process that is being terminated abnormally >>>>>> might not write such an end tag. >>>> >>>> And let's face it, the <log> document element in this case is >>>> useless. It conveys zero information. It would better to regard each >>>> record as a separate well-formed XML document, and the file is >>>> merely physical storage for a bunch of log records. >>> >>> What happens if you throw such a file into a normal XML parser? >>> >>> I would imagine that if you're using StAX, you can stop parsing when >>> you hit the end of a root element, and then either carry on to the >>> next one, or perhaps wrap a fresh parser round the underlying input >>> stream. >>> >>> I have no idea what a SAX parser would do; i don't know how much >>> well-formedness checking they do. >>> >>> What would a DOM parser do? >>> >>> You might need to interpolate a layer between the parser and the >>> FileInputStream to notionally split the file into substreams, one per >>> document. That would require some sort of framing format for the >>> file, i think. >> >> The java.util.logging.XMLFormatter follows the DTD described in the >> Appendix.* You are free to write a formatter that follows your own DTD. > > No, i was talking about Arved's idea of putting multiple XML documents > in a single file. Did you read and understand Arved's post? > Yep. Shrugs.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Logging Question Novice <novice@example..com> - 2011-12-31 21:27 +0000
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2011-12-31 17:25 -0500
Re: Logging Question Novice <novice@example..com> - 2012-01-01 01:46 +0000
Re: Logging Question Lew <lewbloch@gmail.com> - 2011-12-31 14:53 -0800
Re: Logging Question Novice <novice@example..com> - 2012-01-01 01:59 +0000
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2011-12-31 22:14 -0500
Re: Logging Question Novice <novice@example..com> - 2012-01-01 05:44 +0000
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-01 07:59 -0500
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-01 08:14 -0500
Re: Logging Question Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-01 19:06 -0400
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-01 18:24 -0500
Re: Logging Question Tom Anderson <twic@urchin.earth.li> - 2012-01-03 15:33 +0000
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-03 11:21 -0500
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-03 11:35 -0500
Re: Logging Question Tom Anderson <twic@urchin.earth.li> - 2012-01-04 14:42 +0000
Re: Logging Question Jeff Higgins <jeff@invalid.invalid> - 2012-01-04 11:43 -0500
Re: Logging Question Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-04 20:28 -0400
Re: Logging Question Donkey Hottie <donkey@fredriksson.dy.fi> - 2012-01-05 11:28 +0200
Re: Logging Question Tom Anderson <twic@urchin.earth.li> - 2012-01-08 14:08 +0000
Re: Logging Question Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-09 19:47 -0400
csiph-web