Re: 2.6.2 minSize; reload tomcat - html log did not show correctly

2016-07-16 Thread Remko Popma
It may be good to create a Jira ticket for this before it drops below my inbox horizon. Sent from my iPhone > On 2016/07/11, at 23:23, Emi wrote: > > Hello, > > upgraded to 2.6.2 with minSize setup, when reload tomcat, debug.html are not > shown correctly. > >

Re: Reloading appender after property value changes

2016-06-28 Thread Remko Popma
*as > an integer, using default value 0: java.lang.NumberFormatException: For > input string: "${email.smtp.port}" > --- > > > > Thanks > Ben > > >> On Mon, Jun 27, 2016 at 3:36

Re: Disabling Garbage-free not working

2016-07-05 Thread Remko Popma
Very glad to hear that. Thanks! The plan is to start the 2.6.2 release procedure very soon. On Tue, Jul 5, 2016 at 9:38 PM, Enric Jaen <enricj...@yahoo.es.invalid> wrote: > I tried the 2.6.2 snapshot and it works Thanks > > El Lunes 4 de julio de 2016 9:47, Remko Popma <rem

Re: Logging stopped, but Log4j2-AsyncLogger is RUNNABLE and maybe stuck in ThrowableProxy.toExtendedStackTrace

2016-07-05 Thread Remko Popma
The StackOverflow link may still be relevant if the problem is caused by class loading (by different classloaders?) from different threads. Leon, is there any other thread in the thread dump that is loading a class? Sent from my iPhone > On 2016/07/06, at 6:31, Ralph Goers

Re: Logging stopped, but Log4j2-AsyncLogger is RUNNABLE and maybe stuck in ThrowableProxy.toExtendedStackTrace

2016-07-06 Thread Remko Popma
It's a large > codebase, so hard to review all the libraries and uses. But now we know what > to look out for if it happens again. This can happen with async logging. > > Basically one thread would be in RUNNABLE state, but will say "in > Object.wait()" and another th

Re: [ANNOUNCEMENT] Log

2016-07-10 Thread Remko Popma
@gmail.com> wrote: >> >> That's the first blog post there in almost 2.5 years! How can we get more >> entries in there? >> >> On 10 July 2016 at 17:45, Remko Popma <remko.po...@gmail.com> wrote: >>> Blogged: >>> >>> http

Re: [ANNOUNCEMENT] Log

2016-07-10 Thread Remko Popma
Blogged: https://blogs.apache.org/logging/entry/log4j_2_6_2_released On Mon, Jul 11, 2016 at 4:31 AM, Ralph Goers wrote: > The Apache Log4j 2 team is pleased to announce the Log4j 2.6.2 release! > > Apache Log4j is a well known framework for logging application

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-07 Thread Remko Popma
Cheryl, Just thinking out loud, Log4j 2 has the ability to start logging to a new log file that is not explicitly defined in configuration with the RoutingAppender. See https://logging.apache.org/log4j/2.x/faq.html#separate_log_files You may be able to use this feature, perhaps in combination

Re: Why is AsyncLogger#shutdown time not configurable?

2016-06-30 Thread Remko Popma
At the time it was on purpose but now I think about it more I agree it is better to use some timeout. Not sure when I will be able to get to it. Would you mind raising a Jira for this so we won't forget about it? Remko On Thu, Jun 30, 2016 at 4:10 AM, David Leonhartsberger

Re: Disabling Garbage-free not working

2016-07-01 Thread Remko Popma
Log4j 2.6.1 needs Java 7. Please provide more details about the memory problem. Sent from my iPhone > On 2016/07/02, at 0:38, Enric Jaen wrote: > > Hello, > In our tomcat application we have a memory problem with logs kept in heap.I > tried using log4j 1.6 and

Re: Disabling Garbage-free not working

2016-07-02 Thread Remko Popma
if needed > > > > El Sábado 2 de julio de 2016 5:28, Matt Sicker <boa...@gmail.com> > escribió: > > > That's the bug I was trying to find. It sounds related. > > On 1 July 2016 at 23:09, Ralph Goers <ralph.go...@dslextreme.com> wrote: > > > Could th

Re: OnStartupTriggeringPolicy/custom header

2016-06-19 Thread Remko Popma
Yes please create a Jira. We need it for our change log anyway. (And I find that email quickly drops below the horizon...) Sent from my iPhone > On 2016/06/20, at 12:30, Leon Finker wrote: > > Yes i can confirm each reconfigure causes the rollover, which is not good > for

Re: Disabling Garbage-free not working

2016-07-01 Thread Remko Popma
otal of 3MB and we are > suffering of continuos full gc. By releasing that mem we would go fine.Enric > > > >El Viernes 1 de julio de 2016 16:50, Remko Popma <remko.po...@gmail.com> > escribió: > > > Log4j 2.6.1 needs Java 7. Please provide more details abo

Re: File handle on Windows

2017-01-31 Thread Remko Popma
You can try calling File.deleteOnExit(). On Wed, Feb 1, 2017 at 3:17 AM, Clément Guillaume wrote: > Hi, > > I have a unit test, using log4j 2.8 to log to a file using a FileAppender, > that deletes the log file at the end of the test. This test works well on > linux, but

Re: 2.8.1 release

2017-02-07 Thread Remko Popma
The 2.8.1-SNAPSHOT build is available here: https://builds.apache.org/job/Log4j%202.x/2653/ On Wed, Feb 8, 2017 at 1:09 AM, Akehurst, David wrote: > I need a fix for the bug > https://issues.apache.org/jira/browse/LOG4J2-1799 > > I'm running log4j2 in an OSGI

Re: Asynchronous Compression and JVM Shutdown

2017-01-22 Thread Remko Popma
You can browse the 2.7 source here: https://logging.apache.org/log4j/2.x/log4j-core/xref/index.html Remko Sent from my iPhone > On Jan 23, 2017, at 8:04, Apache wrote: > > In 2.7 the threads are owned by an ExecutorService that creates threads using > the name of

Re: Asynchronous Compression and JVM Shutdown

2017-01-22 Thread Remko Popma
More specific 2.7 source links: https://logging.apache.org/log4j/log4j-2.7/log4j-core/xref/org/apache/logging/log4j/core/LoggerContext.html (executors are started around line 508) and

Re: Problem with ThreadContextMapFilter

2017-01-24 Thread Remko Popma
Glad to hear the problem is resolved. Enjoy! Remko Sent from my iPhone > On Jan 25, 2017, at 7:25, kriegerd wrote: > > SOLVED. > > 2 dumb issues. > 1. I was getting a class not found error for the ContextMapFilter, changed > to ThreadContextMapFilter. > > 2. I had

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Remko Popma
’re going to try and pull that for you as we’re still working through was >> is going on. >> >> One question, though what would you use in place of the >> DefaultRolloverStrategy and max? >> >> Ron DiFrango >> >> On 2/13/17, 6:43 PM, "Remk

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Remko Popma
f httpclient we’ve been using has also >>>>>>> been constant: >>>>>>> >>>>>>> >>>>>>> org.apache.httpcomponents >>>>>>> httpclient >>>>>>> 4.5.2 >>>>&

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Remko Popma
Ron, We haven't heard of any issues like you describe. Have you tried running your application with Java Flight Recorder ? This should help diagnose what is going on. Remko On Mon, Feb 13, 2017 at 9:59 PM,

Re: Profile controlled filtering

2017-02-27 Thread Remko Popma
One option is to create a custom Log4j2 Filter. Your custom Filter would only be "active" if it detects it's in the correct environment, otherwise it would return NEUTRAL from all `filter(...)` methods. CompositeFilter is final so you can't subclass it but perhaps you can create a wrapper

Re: Move org.apache.logging.log4j.util.LoaderUtil.isClassAvailable(String) to Core?

2016-09-06 Thread Remko Popma
Is there a problem that needs solving here? I know we consider the API module's util package private, but I really don't like making changes that could break user code for no good reason... Sent from my iPhone > On 2016/09/07, at 6:36, Matt Sicker wrote: > > Might as well.

Re: Move org.apache.logging.log4j.util.LoaderUtil.isClassAvailable(String) to Core?

2016-09-06 Thread Remko Popma
y > >> On Tue, Sep 6, 2016 at 6:34 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Is there a problem that needs solving here? >> I know we consider the API module's util package private, but I really >> don't like making changes that could brea

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
ging.log4j.core.tools.Generate$ExtendedLogger' > com.mycomp.ExtLogger DIAG=350 NOTICE=450 VERBOSE=550 > ExtLogger.java > > Juan > >> On 11 Sep 2016, at 10:26, Remko Popma <remko.po...@gmail.com> wrote: >> >> You need to also specify the log levels to ge

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
you need to escape the $ > character, so the class name should be between single quotes > 'org.apache.logging.log4j.core.tools.Generate$ExtendedLogger’. > > Juan > > > On 11 Sep 2016, at 16:51, Remko Popma <remko.po...@gmail.com> wrote: > > > > On windows, quoting with double

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
6 at 10:51 PM, Remko Popma <remko.po...@gmail.com> wrote: > Thanks! > I'll try this and update the docs. > > Remko > > Sent from my iPhone > > > On 2016/09/11, at 21:37, Juan Fuentes (CISD) < > juan.fuentes.c...@gmail.com> wrote: > > > > I f

Re: Logger Wrapper + Trace API = Issues

2016-09-10 Thread Remko Popma
The easier way is to use the wrapper generator tool included in log4j. The tool is intended to be used with custom log levels and is documented here: https://logging.apache.org/log4j/2.x/manual/customloglevels.html#AddingOrReplacingLevels I should add this question to the faq page, this is at

Re: Tried to remove Log4jServletFilter reference to avoid "GC overhead limit exceeded", but still happens

2016-09-09 Thread Remko Popma
This appears to have been useful for people: http://stackoverflow.com/a/1393503/1446916 My guess would be that your application is creating objects in a tight loop somewhere. If you run the app with FlightRecorder you should be able to zoom in on where the allocation is taking place. See

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
rs? > > > > Ralph > > > >> On Sep 10, 2016, at 5:09 PM, Remko Popma <remko.po...@gmail.com> wrote: > >> > >> The easier way is to use the wrapper generator tool included in log4j. > The tool is intended to be used with cus

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
ation > > Juan > > > > > On 11 Sep 2016, at 08:50, Remko Popma <remko.po...@gmail.com> wrote: > > > > The focus of that logger wrapper generator is on the convenience methods > to > > generate for a new log level, that is why the tools is documente

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
8.0_73" > Java(TM) SE Runtime Environment (build 1.8.0_73-b02) > Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode) > > Juan > > > On 11 Sep 2016, at 09:39, Remko Popma <remko.po...@gmail.com> wrote: > > > > What platform are you using? it

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
ore.tools.Generate$CustomLogger > MyLogger > MyLogger.java > > I tried having MyLogger in both a package and base package and also > outputting the source to console or a file. > > Juan > > > On 11 Sep 2016, at 09:13, Remko Popma <remko.po...@gmail.com> wrote:

Re: Logger Wrapper + Trace API = Issues

2016-09-11 Thread Remko Popma
FYI Added entry to the FAQ: https://github.com/apache/logging-log4j2/blob/master/src/site/xdoc/faq.xml#L377 On Sunday, 11 September 2016, Remko Popma <remko.po...@gmail.com> wrote: > You need to also specify the log levels to generate, but the below both > worked for me: > > %J

Re: Log4j2 script to generate hash

2016-11-08 Thread Remko Popma
tractCallSite.java:307) >at Script2.run(Script2.groovy:8) >at > org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:343) > ... 12 more > >> On Tue, Nov 8, 2016 at 3:47 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >>

Re: Log4j2 script to generate hash

2016-11-08 Thread Remko Popma
ent' but I can use 'message', perfect, thank you! >> >>> On Tue, Nov 8, 2016 at 4:21 PM, Remko Popma <remko.po...@gmail.com> wrote: >>> >>> Yes Filters can be applied at different stages of the logging pipeline. >>> The Filter interface has separate me

Re: Log4j2 script to generate hash

2016-11-08 Thread Remko Popma
If you make it a global filter it will get applied before the LogEvent is constructed. Please try that. Remko Sent from my iPhone > On 9 Nov 2016, at 7:02, Benjamin Jaton wrote: > > I am applying it on the root logger. > >> On Tue, Nov 8, 2016 at 12:47 PM, Matt

Re: looking for source

2016-11-05 Thread Remko Popma
, as we're seeing with our appender/layout. > > > Thanks, > > Nick > > > From: Remko Popma <remko.po...@gmail.com> > Sent: Saturday, November 5, 2016 10:03 PM > To: Log4J Users List > Subject: Re: looking for source > > Nick, > > If you want

Re: Log4j2 script to generate hash

2016-11-09 Thread Remko Popma
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:343) >... 12 more > > Then I tried: > > println(parameters) > > But it returns 'null' > >> On Tue, Nov 8, 2016 at 5:18 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >&

Re: Problem using LocalizedMessageFactory: Logger prints key instead of messsage

2016-11-08 Thread Remko Popma
Not sure if this is a bug or not but the described behavior sounds surprising... Would you mind creating a JIRA ticket for this? Sent from my iPhone > On 8 Nov 2016, at 16:20, Markus Waidhofer wrote: > > Hi, > > I am having a problem when logging localized messages. I use a

Re: Log4j2 script to generate hash

2016-11-10 Thread Remko Popma
stractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307) >at Script2.run(Script2.groovy:8) >at > org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:343) > ... 12 more > >> On Wed, Nov 9, 2016 at 10:54 PM, Remko Popma <remko.po...@gma

Re: Log4j2 script to generate hash

2016-11-10 Thread Remko Popma
ers" : { > "appender" : [ { >"type" : "Console", >"name" : "STDOUT", >"PatternLayout" : { > "pattern" : "%d{-MM-dd HH:mm:ss} %-5p %c{1.}:%L - > [%X{md5message}] %m%n" &

Re: Disruptor memory management

2016-11-10 Thread Remko Popma
Yes, this is the default. You can can reduce the ring buffer size in the configuration to reduce memory consumption. An alternative is to switch off garbage-free mode by setting system property "log4j2.enable.threadlocals" to false. This will cause Log4j to cache less and allocate temporary

Re: looking for source

2016-11-05 Thread Remko Popma
like > this: > > > StringWriter sw = new StringWriter(); > logEvent.getThrown().printStackTrace(new PrintWriter(sw)); > String exceptionAsString = sw.toString(); > String message = logEvent.getMessage().getFormattedMessage() + "\n" + > exceptionAsString; > > > Thanks

Re: looking for source

2016-11-05 Thread Remko Popma
eption. > > > Thanks, > > Nick > > > From: Remko Popma <remko.po...@gmail.com> > Sent: Friday, November 4, 2016 9:58 PM > To: Log4J Users List > Subject: Re: looking for source > > The Throwable is initially captured in the Message

Re: DefaultRolloverStrategy max attribute and IfAccumulatedFileCount

2016-10-18 Thread Remko Popma
You need to explicitly set max if you want to keep more files around than the default. The Delete action is currently not aware of max. I'm not sure if it would be a good idea to change that and for example automatically ignore the (implicit or explicit) max value when a Delete rule is

Re: FileAppender dynamic fileName

2016-11-28 Thread Remko Popma
{sys:catalina.home} in the filename > for all of my web apps. > > Ralph > >> On Nov 27, 2016, at 11:10 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Does the FileAppender support lookups in the configured file name? >> >>

Re: FileAppender dynamic fileName

2016-11-28 Thread Remko Popma
all, > ‘$${nnn:…}’ does not work. I specify ${sys:catalina.home} in the filename > for all of my web apps. > > Ralph > >> On Nov 27, 2016, at 11:10 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Does the FileAppender support lookups in the configured fi

FileAppender dynamic fileName

2016-11-27 Thread Remko Popma
Does the FileAppender support lookups in the configured file name? Something like ... Does a JIRA ticket already exist for this? (Couldn't find it...) I have a number of processes that are configured almost identically; with the log4j2.xml inside one of the jars. Trying to let the different

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Remko Popma
Chris, Are you aware that there is a log4j-1.2-api adapter included in Log4j2 that allows you to keep your application code unchanged (unless you rely on the innards of Log4j 1.2)? You only need to change the configuration (the manual has tons of examples). Just FYI. Remko Sent from my

Re: looking for source

2016-11-04 Thread Remko Popma
Sure. Start in AbstractLogger in the API module: https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java and at some point you probably also want to look at the concrete subclass Logger in the core module:

Re: Generating Extended Loggers command fails with NoClassDefFoundError

2016-12-15 Thread Remko Popma
Hi, The tool didn't use to require the log4j-api on the classpath. Not sure what happened there, apologies. For now please try to generate again with both the api and the core jars in the classpath. Remko Sent from my iPhone > On 16 Dec 2016, at 3:16, Gary Gregory

Re: Generating Extended Loggers command fails with NoClassDefFoundError

2016-12-16 Thread Remko Popma
an example on the webpage, v2.7, and I'm running on mac: >> java -cp log4j-core-2.7.jar >> 'org.apache.logging.log4j.core.tools.Generate$ExtendedLogger' \ >>com.mycomp.ExtLogger DIAG=350 NOTICE=450 VERBOSE=550 > >> com/mycomp/ExtLogger.java >>

Re: Context-wide filter not working for me

2016-12-06 Thread Remko Popma
The Filter interface has several methods, which can get called at different times. For context-wide filters, the methods _without_ LogEvent will be called. Sent from my iPhone > On 7 Dec 2016, at 5:18, Matt Sicker wrote: > > Can you set status="debug" in your element?

Re: Context-wide filter not working for me

2016-12-06 Thread Remko Popma
t; methods, and my needs > > are to intercept all messages before they reach any appender. > > So maybe that's the question I need to ask - how do I filter all messages > > before they reach any appender? > > > > Thanks, > > Guy > > > > > &

Re: Zipped rolling file - name of file entry

2016-12-08 Thread Remko Popma
Greg, So, to clarify, the file contained in the rolled over zip files (like "my.20.log.zip") is called "my.1.log", not "my.1.log.zip", correct? (Your original email said the rolled over zip files contain zip files, which sounds like a bug...) Sent from my iPhone > On 9 Dec 2016, at 2:35, Greg

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Remko Popma
Chris, Glad to hear that. Be aware that Log4j 1 is broken in Java 9 so you will need to go to Log4j 2 when you upgrade Java. Remko Sent from my iPhone > On 1 Dec 2016, at 1:41, Christopher Schultz > wrote: > > All, > > On 11/17/16 10:28 AM, Christopher

Re: FileAppender dynamic fileName

2016-11-29 Thread Remko Popma
Gary Gregory <garydgreg...@gmail.com> wrote: > > I know the separator is a problem in some cases. But I though it was the > minus sign, which causes problems like > https://issues.apache.org/jira/browse/LOG4J2-1013 which I am not sure how > to best solve :-( > > Gary

Re: log4j2 - Logger does not have the configuration If procured before LoggerContext has initialized

2016-11-30 Thread Remko Popma
The first line: private static final Logger LOGGER = LogManager.getLogger(TestLog.class); is executed before the code in main(). This means that Log4j will initialize to the default configuration (since it cannot find a configuration file). After that, your code in main() kicks in. It is

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Remko Popma
Details are here: https://blogs.apache.org/logging/entry/moving_on_to_log4j_2 Sent from my iPhone > On 1 Dec 2016, at 10:32, Christopher Schultz <ch...@christopherschultz.net> > wrote: > > Remko, > >> On 11/30/16 5:26 PM, Remko Popma wrote: >> Chris, >>

Re: Compression of rolled files : performance issue when lots of JVMs are using timed based policy

2017-03-24 Thread Remko Popma
anges >> >> Regards, >> Anthony >> >> >> 2017-03-23 13:15 GMT+01:00 Anthony Maire <maire.anth...@gmail.com>: >> >>> Ok, I will open a jira ticket and provide a PR. >>> >>> Thanks for your input. >>> >>> Le

Re: About performance

2017-03-30 Thread Remko Popma
e performance issue ? Yes. Avoid if you want good performance. > > > Regards. > > >> On Wed, Mar 29, 2017 at 5:49 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Pietro, >> >> The performance impact of logging location information is massive. >

Re: About performance

2017-03-30 Thread Remko Popma
hich class to look at. Then just search for the log message string in that class. > > > Regards > >> On Thu, Mar 30, 2017 at 1:49 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> >> >> Sent from my iPhone >> >>> On Mar 30, 2017, at

Re: Compression of rolled files : performance issue when lots of JVMs are using timed based policy

2017-03-23 Thread Remko Popma
> code should be related to the triggering policy and not to the rolling > strategy. > > So the best thing to do is to add some property on the timed base > triggering policy and let that class handle all the logic and delay the > triggering itself instead of the compression. > > Ar

Re: Compression of rolled files : performance issue when lots of JVMs are using timed based policy

2017-03-22 Thread Remko Popma
> On Mar 23, 2017, at 1:06, Anthony Maire wrote: > > Thanks for these answers > > @Ralph : that was the kind of idea I had in mind : changing the > RollingFileManager.asyncExecutor to be a ScheduledThreadPoolExecutor, and > based on some configuration, submitting task

Re: About performance

2017-03-29 Thread Remko Popma
Pietro, The performance impact of logging location information is massive. See https://logging.apache.org/log4j/2.x/performance.html#asyncLoggingWithLocation You can increase logging speed by ~80x by not logging location information. If you follow the conventions that each class has its own

Re: Programmatically determine if logger is "OFF"

2017-03-30 Thread Remko Popma
I think Gary rightly points out that this may not be as trivial as it seems. Personally I am not a fan of API changes to add convenience methods. Remko Sent from my iPhone > On Mar 31, 2017, at 8:20, Gary Gregory wrote: > > The best way to get this cooking is to

Re: Compression of rolled files : performance issue when lots of JVMs are using timed based policy

2017-03-24 Thread Remko Popma
he.org> wrote: > > What if a configuration could contain conditional statements? For instance: > > > > > > > > > > > > > DayOfWeek="*" /> > > > > >

Re: Using Log4J2 2.8 (via the 1.2 API Bridge) for Tomcat8 Internal Logging - RollingFileAppender does not (cannot?) create new Log File

2017-04-10 Thread Remko Popma
If you enable internal Log4j2 logging with at the top of your configuration, then you should see internal Log4j2 logging on the console. It should show details of what happens during a rollover. Can you post that output? Sent from my iPhone > On Apr 11, 2017, at 4:07, Ankit Agarwal

Re: Max index limit in DefaultRolloverStrategy

2017-04-11 Thread Remko Popma
Sorry to hear that! You are right that the docs currently don't mention the default value for the max attribute. We should fix the docs. Can I ask you to raise a Jira for this? As for why not a large default value, there is a performance impact: all files within the range need to be renamed

Re: [ANN] Log4j 2.8.2 released

2017-04-08 Thread Remko Popma
Blogged: https://blogs.apache.org/logging/entry/log4j-2-8-2-released On Sun, Apr 9, 2017 at 1:53 AM, Matt Sicker wrote: > The Apache Log4j 2 team is pleased to announce the Log4j 2.8.2 release! > > Apache Log4j is a well known framework for logging application behavior. >

Re: EDT Transition?

2017-03-13 Thread Remko Popma
Ron, Shishir, all, I've started to look at the issue. Remko Sent from my iPhone > On Mar 14, 2017, at 8:34, DiFrango, Ronald > wrote: > > Matt, > > It most certainly is and my college Shishir has updated the ticket below with > some details of what he

Re: using log4j in classloaders and JMX

2017-03-13 Thread Remko Popma
The Configuration name is not used to register the LoggerContext. JMX MBeans for LoggerContext are registered with unique names: their hashcode is appended to the name. The first part of the name depends on what kind of application it is. I believe that for web apps we try to use a meaningful

Re: [ANNOUNCEMENT] Apache Log4j 2.8.1 released

2017-03-02 Thread Remko Popma
Blogged: https://blogs.apache.org/logging/entry/log4j-2-8-1-released On Fri, Mar 3, 2017 at 2:27 PM, Ralph Goers wrote: > The Apache Log4j 2 team is pleased to announce the Log4j 2.8.1 release! > > Apache Log4j is a well known framework for logging application

Re: anomalies running log4j v 2.2 on Tomcat

2017-04-18 Thread Remko Popma
I can partially answer that. The LoggerContext name has changed a few times. I actually thought it's the other way around and the older versions of Log4j2 use a web app name-based LoggerContext name. It turned out that some web containers generate web context names that are multiple lines and

Re: log4j2.properties file locked in Tomcat 8.0

2017-08-11 Thread Remko Popma
Is this on Windows? Have you tried to find what file exactly is being locked with a tool like Process Explorer from SysExternals (now Microsoft): https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer (Shameless plug) Every java main() method deserves http://picocli.info > On

Re: log4j2.properties file locked in Tomcat 8.0

2017-08-11 Thread Remko Popma
Also, what is your Log4j2 configuration? Some file appender configurations result in file locking. (Shameless plug) Every java main() method deserves http://picocli.info > On Aug 11, 2017, at 17:36, Bogdan wrote: > > Hello again, > > I have tested with the latest version

Re: FailoverAppender is not starting

2017-07-10 Thread Remko Popma
Your root logger is referencing the Failover appender directly. It should reference the RollingFile appender instead. Remko (Shameless plug) Every java main() method deserves http://picocli.info > On Jul 11, 2017, at 4:20, Vina Martin wrote: > > RollingFile

Re: FailoverAppender is not starting

2017-07-10 Thread Remko Popma
> (RollingFile returns null since it couldn’t create the Appender). > > Ralph > >> On Jul 10, 2017, at 3:58 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Your root logger is referencing the Failover appender directly. It should >> reference the

Re: Trailing space on loglevel in properties file not trimmed

2017-04-24 Thread Remko Popma
I believe that's how java.util.Properties work but I can imagine this can be surprising... Remko (Shameless plug) Every main() method deserves http://picocli.info > On Apr 24, 2017, at 21:24, Michael Lück wrote: > > Hello all, > > > > I just realised that a

Re: Custom actions on rollover

2017-05-19 Thread Remko Popma
e know if you need help. > > On 19 May 2017, 5:25 AM +0530, Remko Popma <remko.po...@gmail.com>, wrote: > > Some (very early stage) thinking on that topic is here: > https://issues.apache.org/jira/browse/LOG4J2-1198 > > > > This may not be easy because there

Re: How can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-19 Thread Remko Popma
Instead of activemq-all, use only the parts from activemq that you need ( https://mvnrepository.com/artifact/org.apache.activemq). On Fri, May 19, 2017 at 6:12 PM, Sigmond Hola wrote: > We have a web project want to use log4j 2 for logging. > > But after I add > >-

Re: Custom actions on rollover

2017-05-18 Thread Remko Popma
Some (very early stage) thinking on that topic is here: https://issues.apache.org/jira/browse/LOG4J2-1198 This may not be easy because there are quite a few subtleties with rollovers (search the Log4j2 JIRA for rolling and rollover). Remko (Shameless plug) Every java main() method deserves

Re: [ANNOUNCE] Apache Log4j 2.9.0 released

2017-08-30 Thread Remko Popma
Blogged: https://blogs.apache.org/logging/entry/log4j-2-9-released (Shameless plug) Every java main() method deserves http://picocli.info > On Aug 31, 2017, at 9:26, Ralph Goers wrote: > > The Apache Log4j 2 team is pleased to announce the Log4j 2.9.0 release! > >

Re: Asynchronous logger and thread-local appender

2017-09-24 Thread Remko Popma
Piotr, I agree that implementing custom Log4j2 context injector to solve this can be quite complex. It's a good idea to look at using AsyncAppender with an alternative queue. DisruptorBlockingQueue and JCToolsBlockingQueue are good options. We haven't done extensive performance analysis but

Re: Do you have any plans to instrument `log4j2` with metrics?

2017-09-30 Thread Remko Popma
Ralph beat me to it. :-) We could add counters to various components and make those counters visible via JMX. Surely the libraries you mention know how to consume metrics from a JMX data source. To me a key point would be to avoid impacting performance while updating counters in

Re: AbstactDatabase appender issue with AsyncLogger

2017-09-28 Thread Remko Popma
I'm away from my PC but it sounds like Log4j2 needs to take a snapshot of the log event before adding it to the list. (Shameless plug) Every java main() method deserves http://picocli.info > On Sep 28, 2017, at 17:45, Tolga Kavukcu wrote: > > Hello, > > I use log4j2

Re: Log4j2 - setting programatically the env variable

2017-08-21 Thread Remko Popma
Q1. Why is the log4j2 framework starting before the servlet context is called ? Not sure. There could be some logging happening in a static initialization block. This static block is called when its class is loaded, which would cause Log4j2 to initialize itself. You can see that Log4j2 tries to

Re: HELP! About log4j2 delete action configuration

2017-08-28 Thread Remko Popma
I can't see any problem with the configuration. Can you switch on status logging? Please add to the top of your configuration file. That will print internal Log4j2 status log messages to the console during rollover. Hopefully that will give some insight into what is happening. Remko

Re: Version 1.2 - send one logger to a separate file

2017-10-09 Thread Remko Popma
Log4j 1.x was declared End of Life in August 2015 (https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces). Also, Log4j 1.2 is known to be broken on Java 9 (https://blogs.apache.org/logging/entry/moving_on_to_log4j_2). Other than that, the people in this

Re: Flushing async appenders

2017-11-28 Thread Remko Popma
n observe that lots of messages are either lost of are not flushed. > This happens even if I change the console to go to a file. > > Thank you, > > Laurent Hasson > Co-Founder and CTO > CapsicoHealth Inc. > > > Research has shown that capsaicin, the substance

Re: new feature proposal - microloggers

2017-11-23 Thread Remko Popma
You know, I think we may already have something very similar... Take a look at the second example under Map Filter: https://logging.apache.org/log4j/2.x/manual/filters.html#MapFilter If you use a RegexFilter ( https://logging.apache.org/log4j/2.x/manual/filters.html#RegexFilter) would that meet

Re: new feature proposal - microloggers

2017-11-23 Thread Remko Popma
Cool! Stay in touch: ideas are always welcome! On Fri, Nov 24, 2017 at 3:41 AM, Enric Jaen <enricj...@yahoo.es.invalid> wrote: > I will try it and let you know > best regards > Enric >En jueves, 23 de noviembre de 2017 12:37:25 GMT, Remko Popma < > remko.po...@gmail

Re: monitorInterval not working in tomcat

2017-12-03 Thread Remko Popma
Enric, You should be able to remove Log4j-1.2.14 after adding log4j-1.2-api-2.6.2.jar (or log4j-1.2-api-2.4.jar). They provide the same API to the application. The difference is that log4j-1.2-api-2.x.jar uses log4j-core-2.x as its implementation, which is what you want. (Shameless plug)

Re: Log4j2 RollingFileAppender message not in order?

2017-12-14 Thread Remko Popma
gt; threaded, so I think that explains it. > Useful to know about 2031 though. > > Thanks > Benjamin > >> On Thu, Dec 14, 2017 at 2:54 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> Are you using Log4j 2.10? >> The reason I’m asking is that t

Re: log4j reduction of repeated message

2017-12-13 Thread Remko Popma
I believe this is possible, but it’s not trivial. See the discussion here: https://issues.apache.org/jira/browse/LOG4J2-1630 (Shameless plug) Every java main() method deserves http://picocli.info > On Dec 14, 2017, at 2:18, Carlos Terron Bueno wrote: > > rsyslog has an

Re: log4j vs log4jextras v1.x

2017-11-17 Thread Remko Popma
Not sure, you’d have to try. But be aware that Log4j 1.2 has been End of Life for 2 years now and is known to be broken on Java 9. We recommend everyone to upgrade to Log4j2. Log4j2 has better performance and can be configured to be garbage free. Just switching to Log4j2 is likely to speed

Re: Version 1.2 - send one logger to a separate file

2018-05-04 Thread Remko Popma
I added a comment with example to https://issues.apache.org/jira/browse/SOLR-11453 On Fri, May 4, 2018 at 11:49 PM, Shawn Heisey <apa...@elyograg.org> wrote: > On 10/9/2017 5:56 PM, Remko Popma wrote: > > Log4j 1.x was declared End of Life in August 2015 ( > https://blogs.apa

Re: Recursive logging issue with curly braces in JSONLayout Object's toString()

2018-05-29 Thread Remko Popma
No, this is not a known issue. Please raise a ticket on the JIRA issue tracker for this. The more information about the bug, the faster it is likely to be resolved. (Adding a patch or a pull request with unit tests is ideal.) Remko (Shameless plug) Every java main() method deserves

Re: [ANNOUNCE] Apache Log4j Audit 1.0.0 released

2018-06-25 Thread Remko Popma
(Re-posting since I did not see the link when sending from my yahoo mail account.) Blogged: https://blogs.apache.org/logging/entry/announce-apache-log4j-audit-1 Please share on social media! Thanks, -Remko On Mon, Jun 25, 2018 at 7:48 PM, Remko Popma wrote: > Blogged: [ANNOUNCE] Apache Lo

<    1   2   3   4   5   >