shaonan666

Results 5 comments of shaonan666

Hi @ppkarwasz My program isn’t a web app, so [Constants#isWebApp](https://logging.apache.org/log4j/2.x/manual/garbagefree.html#log4j2.isWebapp) returns false at runtime, setting `log4j2.enableThreadlocals `to true. I didn’t intend to enable GC-free mode, it happened accidentally because my...

Hi @ppkarwasz I checked the dump file and code, and it seems `GarbageFreeSortedArrayThreadContextMap` isn’t used. > In code you can check it with ProviderUtil.getProvider().getThreadContextMapInstance() In version 2.24.3, using ProviderUtil.getProvider().getThreadContextMapInstance(), I...

Hi @ppkarwasz This is my `log4j2.xml `configuration file. Could you please review it for me? ```xml ???? %xwEx %5p yyyy-MM-dd HH:mm:ss.SSS xxxx xxx

Hi @ppkarwasz >StringBuilder instances in the RingBufferLogEvent due to GC-free logging Does this refer to the fact that I only configured `log4j2.enableThreadlocals=true` (due to `isWebApp=false`)? >Given the huge RingBuffer you...

Hi @ppkarwasz I think I’ve got it. Let me describe what happened again to ensure I fully understand. **My program doesn’t specify a `messageFactory`.** In version 2.23.1, `LoggerContext#getLogger(String name) `ultimately...