[Swift-devel] Swift Performance Data
Mihael Hategan
hategan at mcs.anl.gov
Mon Jun 25 09:19:00 CDT 2007
On Mon, 2007-06-25 at 14:07 +0000, Ben Clifford wrote:
>
> On Mon, 25 Jun 2007, Mihael Hategan wrote:
>
> > This is similar to code generation vs. abstraction (or interpretation
> > vs. compilation). There can be:
>
> its also an issue with where the abstractions happen:
>
> > 1. An api to access the logs in structured ways
>
> needs the API to exist in the language that you want to write analysers
> in.
>
> > 2. A log translator
>
> makes the API into a posix filesystem with text files. still needs a
> per-language parser to parse that format, but that is 'simple' and works
> in a variety of languages. so I'd favour this.
So would I. And since logs are incremental, it could even be done live
(i.e. tail -f log |translator >translated.log). It would also be
"backwards compatible" with the logs that we've been gathering so far :)
>
> > 3. An adaptor plugged in at the log4j (or whatever logging library)
> > level that does the translation dynamically (at the expense of
> > performance).
>
> Possibly some components can output stuff into a common format using log4j
> - that wouldn't necessarily be any more dynamic than the existing log4j
> output.
Right, but that would not be the general case.
>
More information about the Swift-devel
mailing list