Re: [Json] Using JSON in log files
Erik Wilde <dret@berkeley.edu> Wed, 20 November 2013 17:32 UTC
Return-Path: <dret@berkeley.edu>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5A4811AE4A8 for <json@ietfa.amsl.com>; Wed, 20 Nov 2013 09:32:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.726
X-Spam-Level:
X-Spam-Status: No, score=-4.726 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.525, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N39zXMTKAfqq for <json@ietfa.amsl.com>; Wed, 20 Nov 2013 09:32:03 -0800 (PST)
Received: from cm01fe.IST.Berkeley.EDU (cm01fe.IST.Berkeley.EDU [169.229.218.142]) by ietfa.amsl.com (Postfix) with ESMTP id A37E41AE4C5 for <json@ietf.org>; Wed, 20 Nov 2013 09:32:03 -0800 (PST)
Received: from c-24-6-239-29.hsd1.ca.comcast.net ([24.6.239.29] helo=dretpro.local) by cm01fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:dret@berkeley.edu) (envelope-from <dret@berkeley.edu>) id 1VjBd4-0004Zj-3w; Wed, 20 Nov 2013 09:31:55 -0800
Message-ID: <528CF208.4050802@berkeley.edu>
Date: Wed, 20 Nov 2013 09:31:52 -0800
From: Erik Wilde <dret@berkeley.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: Tim Bray <tbray@textuality.com>
References: <CAMm+Lwj49w5qq3V8tLta_GPq3TT5A0FXuKww5RXHbe74dQ5jjA@mail.gmail.com> <g0qp8952rlt6j93estret25ushl8d1qf82@hive.bjoern.hoehrmann.de> <CAHBU6iuQ+kFgoSVFSBJoL6666pQC0YSXkZYNjDbUqNUGoo+-aA@mail.gmail.com>
In-Reply-To: <CAHBU6iuQ+kFgoSVFSBJoL6666pQC0YSXkZYNjDbUqNUGoo+-aA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, Phillip Hallam-Baker <hallam@gmail.com>, JSON WG <json@ietf.org>
Subject: Re: [Json] Using JSON in log files
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Nov 2013 17:32:05 -0000
or just use http://www.w3.org/TR/xml/#TextEntities and happily and legally append log data to these. good enough for me. cheers, dret. On 2013-11-20, 9:16 , Tim Bray wrote: > Check how XMPP skates around XML’s single-root-element rule. Me, I’d > just have a log file containing a sequence of JSON texts. > > > On Wed, Nov 20, 2013 at 9:02 AM, Bjoern Hoehrmann <derhoermi@gmx.net > <mailto:derhoermi@gmx.net>> wrote: > > * Phillip Hallam-Baker wrote: > >This is not an extension I would want to use in an on-the-wire > format. But > >for log files it is essential. Particularly in my case where the > logs are > >digitally signed notary records. > > I use http://yaml.org/ for such purposes. It is a superset of JSON, in > a way. Converters to JSON, which you would need one way or another, are > readily available. You could also just cheat and say "It's JSON without > the encapsulating []". > -- > Björn Höhrmann · mailto:bjoern@hoehrmann.de > <mailto:bjoern@hoehrmann.de> · http://bjoern.hoehrmann.de > Am Badedeich 7 · Telefon: +49(0)160/4415681 > <tel:%2B49%280%29160%2F4415681> · http://www.bjoernsworld.de > 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ > _______________________________________________ > json mailing list > json@ietf.org <mailto:json@ietf.org> > https://www.ietf.org/mailman/listinfo/json > > > > > _______________________________________________ > json mailing list > json@ietf.org > https://www.ietf.org/mailman/listinfo/json > -- erik wilde | mailto:dret@berkeley.edu - tel:+1-510-2061079 | | UC Berkeley - School of Information (ISchool) | | http://dret.net/netdret http://twitter.com/dret |
- Re: [Json] Using JSON in log files Tatu Saloranta
- Re: [Json] Using JSON in log files Phillip Hallam-Baker
- [Json] Using JSON in log files Phillip Hallam-Baker
- Re: [Json] Using JSON in log files Bjoern Hoehrmann
- Re: [Json] Using JSON in log files Tim Bray
- Re: [Json] Using JSON in log files Erik Wilde
- Re: [Json] Using JSON in log files Phillip Hallam-Baker
- Re: [Json] Using JSON in log files Nico Williams
- Re: [Json] Using JSON in log files Ladislav Lhotka