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


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

Re: log4j socket appender

From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: log4j socket appender
Date 2014-09-19 17:17 -0700
Organization A noiseless patient Spider
Message-ID <lvih3n$443$1@dont-email.me> (permalink)
References <64807899-4e1f-4a12-853b-ad521a27ec48@googlegroups.com> <lvi4ra$q92$1@dont-email.me>

Show all headers | View raw


On 9/19/2014 1:48 PM, Eric Sosman wrote:

>
>      (Disclaimer: I'm no expert on log4j, so read at your own risk...)

Ditto.

>
>      You don't even want to think about parsing this data with anything
> short of a full Java implementation.  This is "serialized" data, that
> is, a data stream into which one JVM can pickle entire objects (and
> their sub-objects, recursively) so another JVM can reconstruct clones
> of the originals.  Serialization is mostly used for things like remote
> procedure calls, where a JVM on machine 1 ships objects to a JVM on
> machine 2, which operates on them and ships back results in a similar
> fashion.  You don't want to parse this stuff.
>

Totally agree.


>      What you want, I think, is something other than SerializedLayout:
> JsonLayout, maybe, or XmlLayout.
>


I think I found the most recent documentation on these layouts here:

<http://logging.apache.org/log4j/2.x/manual/layouts.html>

Double check your version of log4j, there's still a lot of 1.x stuff 
floating around out there.

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


Thread

log4j socket appender doug.farrell@gmail.com - 2014-09-19 13:34 -0700
  Re: log4j socket appender Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-19 16:48 -0400
    Re: log4j socket appender markspace <markspace@nospam.nospam> - 2014-09-19 17:17 -0700
      Re: log4j socket appender doug.farrell@gmail.com - 2014-09-22 08:29 -0700
        Re: log4j socket appender Nigel Wade <nmw@ion.le.ac.uk> - 2014-09-23 12:35 +0100
          Re: log4j socket appender doug.farrell@gmail.com - 2014-10-02 06:23 -0700
  Re: log4j socket appender Marcel Mueller <news.5.maazl@spamgourmet.org> - 2014-09-20 11:46 +0200
    Re: log4j socket appender Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-09-20 10:17 -0700
      Re: log4j socket appender markspace <markspace@nospam.nospam> - 2014-09-20 13:29 -0700
        Re: log4j socket appender Jeff Higgins <jeff@invalid.invalid> - 2014-09-20 23:05 -0400

csiph-web