Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11076

Re: Logging Question

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed1.swip.net!newsfeed2.funet.fi!newsfeeds.funet.fi!fi.sn.net!newsfeed1.tdcnet.fi!news.song.fi!not-for-mail
Date Thu, 05 Jan 2012 11:28:28 +0200
From Donkey Hottie <donkey@fredriksson.dy.fi>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Logging Question
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> <N86Nq.17333$d52.16770@newsfe22.iad>
In-Reply-To <N86Nq.17333$d52.16770@newsfe22.iad>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Antivirus avast! (VPS 120104-1, 04.01.2012), Outbound message
X-Antivirus-Status Clean
Message-ID <0v6gt8-765.ln1@hurricane.fredriksson.dy.fi> (permalink)
Lines 14
Organization NBL Networks Oy
NNTP-Posting-Host 213.157.94.92
X-Trace 1325755925 news.nbl.fi 2773 213.157.94.92:33004
X-Complaints-To abuse@nblnetworks.fi
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11076

Show key headers only | View raw


5.1.2012 2:28, Arved Sandstrom kirjoitti:
> One thing that works with stream parsing is to fool the parser with a
> fake starting document element tag...like <log>. :-) Given that, SAX or
> StAX will parse forever, or until end of file/stream anyway.

The Stream can be a StringStream. I once implemented a logging system,
which did read the data from file into individual Strings and passed
those to SAX. The implementation wrote the log files with out a root
element, and once a day it "logrotated", and added the root element to
the daily log for completeness.

-- 

Increased knowledge will help you now.  Have mate's phone bugged.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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