Re: Lilith and Log4j 2

2017-07-18 Thread Jörn Huxhorn
A general event header and footer would probably be overkill. I’m using the following interface in Lilith: public interface WriteByteStrategy {     void writeBytes(DataOutputStream dataOutputStream, byte[] bytes)         throws IOException; } One implementation writes an int with the length of b

Re: Lilith and Log4j 2

2017-07-19 Thread Jörn Huxhorn
017-07-18 11:48, Jörn Huxhorn wrote: > > A general event header and footer would probably be overkill. > > > > I’m using the following interface in Lilith: > > > > public interface WriteByteStrategy { > > void writeBytes(DataOutputStream dataOutputStream, byte

Re: Lilith and Log4j 2

2017-07-22 Thread Jörn Huxhorn
reimplementing them to prevent future compatibility issues down the road. On 19. July 2017 at 23:04:26, Jörn Huxhorn (jhuxh...@googlemail.com) wrote: > I’ll give this a shot over the next view days. > > Thanks! > > > On 19. July 2017 at 21:33:49, Mikael Ståldal (mi...

Re: Lilith and Log4j 2

2017-07-22 Thread Jörn Huxhorn
> > On 2017-07-22 13:47, Jörn Huxhorn wrote: > > It seems like I don’t get access to the log4j2 ObjectMapper or Jackson > > Module used for > JSON serialization, i.e. I can’t do something like this: > > new JacksonFactory.JSON(encodeThreadContextAsList, includeStacktra

Re: Lilith and Log4j 2

2017-07-25 Thread Jörn Huxhorn
f such a change. Thanks a lot for providing an official parser API! Cheers, Jörn. On 25. July 2017 at 09:51:56, Mikael Ståldal (mi...@apache.org) wrote: > Jörn Huxhorn, would the API in Git branch LOG4J2-1986 work for you? > > On 2017-07-22 22:49, Mikael Ståldal wrote: > > Work in

Re: Lilith and Log4j 2

2017-07-26 Thread Jörn Huxhorn
017 at 09:50:21, Mikael Ståldal (mi...@apache.org) wrote: > I guess you mean: > > this.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); > > Out of curiosity, which of the methods would you use? Reading > InputStream, Reader, String or byte[] ? > >

Re: Lilith and Log4j 2

2017-07-26 Thread Jörn Huxhorn
object "{}" and just assign null (or other default values) to all fields. > > > On 2017-07-25 23:24, Jörn Huxhorn wrote: > > Hey Mikael, > > sorry for the slow response time. > > > > GMail thought that - of all the dev mailing list mails - this specific

Re: Lilith and Log4j 2

2017-07-26 Thread Jörn Huxhorn
+1 On 26. July 2017 at 13:29:27, Mikael Ståldal (mi...@apache.org) wrote: > Maybe I should remove both the Reader and the InputStream versions, > since they cannot parse multiple log events from a stream, and are thus > not very useful. > > On 2017-07-26 10:34, Jörn Huxhorn wrot

Re: Lilith and Log4j 2

2017-07-26 Thread Jörn Huxhorn
gt; cases. > > > > Gary > > > > On Jul 26, 2017 05:30, "Jörn Huxhorn" wrote: > > > >> +1 > >> > >> > >> On 26. July 2017 at 13:29:27, Mikael Ståldal (mi...@apache.org) wrote: > >>> Maybe I should remove both th

Re: Lilith and Log4j 2

2017-08-02 Thread Jörn Huxhorn
“, ". On 26. July 2017 at 21:14:41, Mikael Ståldal (mi...@apache.org) wrote: > That would make sense. > > On 2017-07-26 19:51, Jörn Huxhorn wrote: > > Isn’t this supposed to also use 0-byte terminated events in the future? > > Because in that case it would make sense to

Re: Lilith and Log4j 2

2017-08-03 Thread Jörn Huxhorn
17 at 11:30:47, Mikael Ståldal (mi...@apache.org) wrote: > In 2.9-SNAPSHOT, you can use includeNullDelimiter="true" on the layout. > > > On 2017-08-02 09:23, Jörn Huxhorn wrote: > > I started working on the Lilith side of this and I think I’m pretty much > > don

Re: Lilith and Log4j 2

2017-08-03 Thread Jörn Huxhorn
:24, Mikael Ståldal (mi...@apache.org) wrote: > Yes, that test is known to be unstablle. > > Just build with -DskipTests > > > On 2017-08-03 11:24, Jörn Huxhorn wrote: > > I get test failures building against HEAD > > (3ac727026f295941fe71a34d6c80afc242f38c0f).