How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2

2016-01-21 Thread Apostolis Giannakidis
Hello log4j team, I would like your assistance please. I am new to the log4j 2 API and am I not sure how to properly create a RollingFileAppender with the AppenderComponentBuilder in log4j 2. I managed to create a syslog appender using the AppenderComponentBuilder, but as far as creating a Rolli

Re: How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2

2016-01-21 Thread Ralph Goers
Yes, I saw your post on stackoverflow. I will build an example for you but it will take a day or two as work is very busy right now, so please be patient. Ralph > On Jan 21, 2016, at 3:19 AM, Apostolis Giannakidis > wrote: > > Hello log4j team, > > I would like your assistance please. > > I

Re: How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2

2016-01-21 Thread Apostolis Giannakidis
Thank you for the reply Ralph and for your effort. I look forward to your reply. On Thu, Jan 21, 2016 at 12:51 PM, Ralph Goers wrote: > Yes, I saw your post on stackoverflow. I will build an example for you but > it will take a day or two as work is very busy right now, so please be > patient. >

Easy way to use TCP instead of UDP in SyslogAppender in log4j 1.2.17

2016-01-21 Thread Apostolis Giannakidis
To my understanding log4j 1.2.17 supports only UDP connections for its SyslogAppender. The API does not provide a way to configure the SyslogAppender to use TCP instead. Log4j 2 API provides such configuration. Is there an easy way that I could modify the log4j 1.2.17 SyslogAppender to use TCP ins

Re: How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2

2016-01-21 Thread Gary Gregory
Ralph, perhaps this example should go in our docs/site and the reply can be a link to it? Gary On Jan 21, 2016 4:52 AM, "Ralph Goers" wrote: > Yes, I saw your post on stackoverflow. I will build an example for you but > it will take a day or two as work is very busy right now, so please be > pat

Re: How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2

2016-01-21 Thread Ralph Goers
That would be the plan - except I will paste the code to stackoverflow too. Ralph > On Jan 21, 2016, at 9:46 AM, Gary Gregory wrote: > > Ralph, perhaps this example should go in our docs/site and the reply can be > a link to it? > > Gary > On Jan 21, 2016 4:52 AM, "Ralph Goers" wrote: > >> Y

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Blake Day
Looks good to me! Thanks! On 1/20/16, 9:30 PM, "Gary Gregory" wrote: >How about something like this: > >diff --git >a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/TlsSyslogFrame.java >b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/TlsSyslogFrame.java >in

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Gary Gregory
Blake: Did you try to apply the patch and run with it? Our unit tests pass when I have the patch but it's not guarantee in comparison to a real live use-case. Gary On Thu, Jan 21, 2016 at 9:51 AM, Blake Day wrote: > Looks good to me! Thanks! > > > > > On 1/20/16, 9:30 PM, "Gary Gregory" wrot

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Gary Gregory
Tracking here: https://issues.apache.org/jira/browse/LOG4J2-1260 Gary On Thu, Jan 21, 2016 at 9:55 AM, Gary Gregory wrote: > Blake: > > Did you try to apply the patch and run with it? Our unit tests pass when I > have the patch but it's not guarantee in comparison to a real live use-case. > > G

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Gary Gregory
You can also test a SNAPSHOT build from https://repository.apache.org/content/repositories/snapshots/ Gary On Thu, Jan 21, 2016 at 10:09 AM, Gary Gregory wrote: > Tracking here: https://issues.apache.org/jira/browse/LOG4J2-1260 > > Gary > > On Thu, Jan 21, 2016 at 9:55 AM, Gary Gregory > wrote

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Blake Day
Gary, Yes I was able to apply the patch to 2.5. I can confirm it has fixed the issue we encountered with multi-byte characters. Again, thanks for your assistance! On 1/21/16, 12:55 PM, "Gary Gregory" wrote: >Blake: > >Did you try to apply the patch and run with it? Our unit tests pass when

Re: TlsSyslogFrame calculates message length incorrectly

2016-01-21 Thread Gary Gregory
On Thu, Jan 21, 2016 at 1:46 PM, Blake Day wrote: > Gary, > > Yes I was able to apply the patch to 2.5. I can confirm it has fixed the > issue we encountered with multi-byte characters. Again, thanks for your > assistance! > YW, Gary > > > > On 1/21/16, 12:55 PM, "Gary Gregory" wrote: > > >B