Re: Emoji in PatternLayout?

2020-03-11 Thread Christopher
The problem is that it *is* UTF-8. It appears as though log4j2 isn't reading it correctly as UTF-8. On Tue, Mar 10, 2020, 21:00 Matt Sicker wrote: > You can encode it with \u codes. Emoji require multiple code points > anyways, so file formats can get weird whenever they're not using UTF-8. > >

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Ralph Goers
None of the references were included in the email I see in my Mac Mail client. Were they included? Ralph > On Mar 11, 2020, at 8:19 AM, Volkan Yazıcı wrote: > > My comments are inline. > > On Wed, Mar 11, 2020 at 4:01 PM Ralph Goers > wrote: >> 1. Did you lose functionality by removing the

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Matt Sicker
Take a look at BlockingQueueFactory, too, for making JCTools pluggable. On Wed, Mar 11, 2020 at 10:21 Volkan Yazıcı wrote: > No worries, in the mean time I will try to > > 1. submit a PR to JCTools > 2. re-do benchmarks > 3. implement GcFreeJsonTemplateLayoutTest > > On Wed, Mar 11, 2020 at 4:05

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Volkan Yazıcı
No worries, in the mean time I will try to 1. submit a PR to JCTools 2. re-do benchmarks 3. implement GcFreeJsonTemplateLayoutTest On Wed, Mar 11, 2020 at 4:05 PM Ralph Goers wrote: > > Also, I have to apologize that I have not yet reviewed the PR. I promise I > will but it will take a while wi

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Volkan Yazıcı
My comments are inline. On Wed, Mar 11, 2020 at 4:01 PM Ralph Goers wrote: > 1. Did you lose functionality by removing the dependencies? Except pretty printing, no. > 2. Did you have to add things like JSON parsing to > remove the dependencies? Yes, I have implemented simple JsonReader[1] and

Re: [log4j] getLogger(String... name)?

2020-03-11 Thread Ralph Goers
It would be fun to do a JMH benchmark on String concatenation vs String.join. But yes, that is exactly what I was suggesting. Ralph > On Mar 11, 2020, at 8:09 AM, Gary Gregory wrote: > > Java 8 to the rescue somewhat: > > loggerContext.getLogger(String.join(".", MY_ROOT_NAME, "foo", "bar"));

Re: [log4j] getLogger(String... name)?

2020-03-11 Thread Gary Gregory
Java 8 to the rescue somewhat: loggerContext.getLogger(String.join(".", MY_ROOT_NAME, "foo", "bar")); loggerContext.getLogger(String.join(".", MY_ROOT_NAME, "boo", "baz")); Gary On Tue, Mar 10, 2020 at 4:33 PM Gary Gregory wrote: > On Tue, Mar 10, 2020 at 12:06 PM Ralph Goers > wrote: > >> >>

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Ralph Goers
Also, I have to apologize that I have not yet reviewed the PR. I promise I will but it will take a while with 97 files being modified. Ralph > On Mar 11, 2020, at 8:01 AM, Ralph Goers wrote: > > >> On Mar 11, 2020, at 7:09 AM, Volkan Yazıcı wrote: >> >> I have finally removed all dependenci

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Ralph Goers
> On Mar 11, 2020, at 7:09 AM, Volkan Yazıcı wrote: > > I have finally removed all dependencies of JsonTemplateLayout, except > for optional JCTools dependency. I have a couple of questions to > proceed further: > > 1. May I move the code in the module to core? > 2. Shall I remove benchmark re

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Gary Gregory
Hi All: If this is in master, it should go into a JSON module, existing or new but not core. FYI: Dependencies or not, the current JSON layout is in master in log4j-layout-jackson-json. One of the complaints I've heard over the years is that log4j-core is too "big" at 1.6 MB, not to speak of the t

Re: Dependency-free JsonTemplateLayout

2020-03-11 Thread Carter Kozak
Regarding 2, I don't think we regenerate performance numbers very frequently, we have older results in the documentation already: https://logging.apache.org/log4j/2.x/performance.html On Wed, Mar 11, 2020, at 10:09, Volkan Yazıcı wrote: > I have finally removed all dependencies of JsonTemplateLa

Dependency-free JsonTemplateLayout

2020-03-11 Thread Volkan Yazıcı
I have finally removed all dependencies of JsonTemplateLayout, except for optional JCTools dependency. I have a couple of questions to proceed further: 1. May I move the code in the module to core? 2. Shall I remove benchmark results in the manual since it is difficult to keep them up to date?

Re: TimeFilterTest

2020-03-11 Thread Gary Gregory
+1 Gary On Wed, Mar 11, 2020 at 12:55 AM Ralph Goers wrote: > I have modified TimeFilter to properly account for the change from > daylight saving time to standard time and vice-versa. I also modified it to > handle a start time on the day before the end time. I have a suspicion > that this fi

Re: TimeFilterTest

2020-03-11 Thread Remko Popma
Ralph, No objection from me. Note that Java is getting better and better at escape analysis. We made use of this to implement our nanosecond precision timestamps in a garbage free manner even though we used a java.time API that produces immutable Instant objects. You may be able to do the sa