Re: Using XML for audit trail
Mont Rothstein <[email protected]> Sat, 28 Feb 2009 10:10:50 -0800
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
Thanks. Fragments seem to be the way to go. I don't actually need a log to even combine them into a log document. I will simply be looping through them and displaying them in a UI (or on a report). No querying or anything complicated. -Mont On Fri, Feb 27, 2009 at 12:51 PM, Sam Baskinger <[email protected]>wrote: > Hi Mont, > > The example system I had in mind was log4net > <http://logging.apache.org/log4net/>which has an XML Layout > class<%20 > http://logging.apache.org/log4net/release/sdk/log4net.Layout.XmlLayout.html > >. > I've only used its log4j cousin to log Java activity with no problems. The > reason is that it functions very much like John's structured text logging > only XML records with no surrounding "root" tag. CSV or XML, they will both > require some massaging to convert into a single XML log document instead of > a collection of records. > > Hope that helps! > > Sam > > > > On Fri, Feb 27, 2009 at 12:22 PM, Mont Rothstein > <[email protected]>wrote: > > > Sam, > > > > Do you have any insight into the size and volume of the logs in these > > systems. John indicated that they had failures using XML for logging. > > Have > > you seen this? > > > > Thanks, > > -Mont > > > > > > On Fri, Feb 27, 2009 at 7:38 AM, Sam Baskinger < > [email protected] > > >wrote: > > > > > FWIW, other systems use many small XML documents (xml records) that are > > > appended to a file. Reading the log is then reading many XML documents > in > > a > > > row. > > > > > > Sam > > > > > > On Fri, Feb 27, 2009 at 2:31 AM, Ryan Heath <[email protected]> > > > wrote: > > > > > > > You may want to read xml fragments. > > > > See [0] for a good example. > > > > > > > > HTH > > > > // Ryan > > > > > > > > [0] > > > > > > http://www.clariusconsulting.net/blogs/kzu/archive/2007/08/03/29281.aspx > > > > > > > > > > > > On Fri, Feb 27, 2009 at 1:35 AM, Mont Rothstein > > > > <[email protected]> wrote: > > > > > I want to use XML for an audit trail. The problem I am having is > > that > > > I > > > > > would like to only use append operations to write to the file. > > > > > > > > > > My thought had been to write an element to each line, with > > sub-elements > > > > and > > > > > the end on the same line. I could then parse each line when > reading > > > the > > > > > file. The problem is I can't figure out how to get the XML for a > > > > > node/element/document, and all of the sub-elements, to write out as > a > > > > single > > > > > line. > > > > > > > > > > Alternatively I could use some other mechanism to parse the file > and > > > > read > > > > > each audit entry (xml element with sub-elements) in sequence. > > > > > > > > > > Any suggestions on how to either write the XML as a single line or > a > > > > > preferred method for parsing elements in a file one at a time? > > > > > > > > > > Thanks, > > > > > -Mont > > > > > > > > > > =================================== > > > > > View archives and manage your subscription(s) at > > > > http://peach.ease.lsoft.com/archives > > > > > > > > > > > > > =================================== > > > > View archives and manage your subscription(s) at > > > > http://peach.ease.lsoft.com/archives > > > > > > > > > > =================================== > > > View archives and manage your subscription(s) at > > > http://peach.ease.lsoft.com/archives > > > > > > > =================================== > > View archives and manage your subscription(s) at > > http://peach.ease.lsoft.com/archives > > > > =================================== > View archives and manage your subscription(s) at > http://peach.ease.lsoft.com/archives > =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives