Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11045
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Logging Question |
| Date | Sat, 31 Dec 2011 14:53:55 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 35 |
| Message-ID | <9102298.933.1325372035497.JavaMail.geo-discussion-forums@prj1> (permalink) |
| References | <Xns9FCCA78288290jpnasty@94.75.214.39> |
| Reply-To | comp.lang.java.programmer@googlegroups.com |
| NNTP-Posting-Host | 173.164.137.213 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1325372035 14161 127.0.0.1 (31 Dec 2011 22:53:55 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Sat, 31 Dec 2011 22:53:55 +0000 (UTC) |
| In-Reply-To | <Xns9FCCA78288290jpnasty@94.75.214.39> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.213; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11045 |
Show key headers only | View raw
Novice wrote: > I have a question about the standard Java logging. > > I am using the Java classes to create an XML log. Is there any way that I > can insert an extra line in the XML generated by the logging classes > programmatically? That extra line is NOT a log record, it is an > <xsl:stylesheet> tag. I have a specific XSL file that I'd like to format > the XML with and it would be rather convenient to have the program insert > that line in the XML file. Why do you want to format the XML? > I've poked around the API and the documentation on logging but don't see > anything like this. It seems like a simple enough thing that I'd like to > believe this kind of thing was provided for.... Simple doesn't mean that a class is designed for it. Otherwise there'd only be one class in all of Java that did all simple things. So obviously the reasoning that it's "simple enough ... that I'd like to believe this kind of thing was provided for.... [sic]" is fallacious. (So is the premise that it's a simple thing, but that fallacy is irrelevant because even if it were simple it wouldn't matter.) In fact I've never heard of such a thing being built in to j.u.logging and it would surprise the hell out of me if it were. Anyhow I, too, was unable to find anything like that built in to j.u.logging, probably because it really isn't there. OTOH, perhaps you can take the log file output and post-process it. That would depend on the transformation you intend to perform and its use case. If those support the approach, you can use Java's standard XML tools to do the transformation. Or you can use XSLT to post-process the file. -- Lew
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