[LOG4J2-2685] - Automatic Reconfiguration fails in case of change in the triggeringpolicy

2019-08-30 Thread Gaurav
Hi all, I'm using log4j2 in a web app. I'm using RollingFileAppender and monitorInterval. The automatic reconfiguration fails with the following exception: java.lang.IllegalStateException: Pattern does not contain a date Steps:- Change filePattern from "${web:rootDir}/server.%i.log" to "${we

[Travis] Build failure in a github pull request

2019-08-25 Thread gaurav
Hi devs, I've created a pull request on github. https://github.com/apache/logging-log4j2/pull/305 Here's the travis build failure url - https://travis-ci.org/apache/logging-log4j2/builds/576515115 Thanks, Gaurav

Re: Do I need to clear programmatic loggers/appenders

2019-06-27 Thread Gaurav
doing solves it? > > Ralph > > > On Jun 27, 2019, at 5:28 AM, Gaurav wrote: > > > > Hi all, > > > > My application creates millions of loggers and appenders. > > > > I'm worried about the memory usage. > > > > For that, I am doing fol

Do I need to clear programmatic loggers/appenders

2019-06-27 Thread Gaurav
Hi all, My application creates millions of loggers and appenders. I'm worried about the memory usage. For that, I am doing following things. 1.Remove appender from LoggerConfig. 2.Stop the LoggerConfig. 3. Remove logger from Configuration. But when I do the performance test, it prints the error

Re: Why does the log4j2's ${web:rootDir} web lookup cause issues at the deployment in weblogic 12c?

2019-06-06 Thread Gaurav
On 2019/06/06 15:26:38, Matt Sicker wrote: > Oooh, the dreaded vfs URL scheme. There's some special case support > for vfs URLs in some code, but it's not pervasive IIRC. > > On Thu, 6 Jun 2019 at 04:33, Gaurav wrote: > > > > > > > > On 2019/0

Re: Why does the log4j2's ${web:rootDir} web lookup cause issues at the deployment in weblogic 12c?

2019-06-06 Thread Gaurav
4, 2019, at 9:37 AM, Matt Sicker wrote: > > > > > > I'm not sure if any of the developers here are using WebLogic. Do you > > > think you can provide some sort of functional test or integration test > > > that demonstrates the problem? > > > > >

Why does the log4j2's ${web:rootDir} web lookup cause issues at the deployment in weblogic 12c?

2019-06-04 Thread Gaurav
The log4j2's web lookup - ${web:rootDir} seems to cause problems on weblogic 12c deployment. I suspect that the log4j2 web-lookup plugin is not initialized when weblogic requests the logger at the start of deployment and is unable to create the file. Details in the apache issue link and stackov

Re: NullPointerException in DefaultMergeStrategy

2019-05-27 Thread Gaurav
On 2019/05/27 12:21:38, Gary Gregory wrote: > Ralph, why not add null-checks in the loops of the merge methods? > > Gary > > On Mon, May 27, 2019 at 4:28 AM Gaurav wrote: > > > > > > > On 2019/05/24 19:16:33, Ralph Goers wrote: > > > Composi

Re: NullPointerException in DefaultMergeStrategy

2019-05-27 Thread Gaurav
figuration this shouldn’t happen. > > Ralph > > > On May 24, 2019, at 10:34 AM, Gaurav wrote: > > > > Hi, > > > > Getting NullPointerException in DefaultMergeStrategy class. > > > > codeblock - > > "if > > (targetNode.getAttr

NullPointerException in DefaultMergeStrategy

2019-05-24 Thread Gaurav
Hi, Getting NullPointerException in DefaultMergeStrategy class. codeblock - "if (targetNode.getAttributes().get(NAME).equals(node.getAttributes().get(NAME))) " Probable suspect is that I've developed an appender similar to failoverappender and it does not contain any child nodes. e.g. Sta

Re: Hide message in throwable

2019-05-24 Thread Gaurav
tion with %noex. > > Under what circumstances do you want to hide the exception? You may be able > to use a pattern selector to choose the pattern. > > Ralph > > > On May 24, 2019, at 4:14 AM, Gaurav wrote: > > > > > > > >> On 2019/05/2

Re: Hide message in throwable

2019-05-24 Thread Gaurav
On 2019/05/24 11:14:25, Gaurav wrote: > > > On 2019/05/22 15:36:11, "Carter Kozak" wrote: > > Once you've implemented a LogEventPatternConverter which overrides > > "handlesThrowable" to return true, you will also need to use that pattern &

Re: Hide message in throwable

2019-05-24 Thread Gaurav
t; On Wed, May 22, 2019, at 11:21, Matt Sicker wrote: > > Did you include the @ConverterKeys annotation on your converters? You > > shouldn't need to make a new layout I think. > > > > On Wed, 22 May 2019 at 06:18, Gaurav wrote: > > > > > > > > &g

Re: Hide message in throwable

2019-05-24 Thread Gaurav
r. > > Just create a new PatternConverter that does what you need it to do. > > Ralph > > > On May 22, 2019, at 4:18 AM, Gaurav wrote: > > > > > > > > On 2019/05/16 14:59:56, Matt Sicker wrote: > >> Instead of extending the plugin cl

Re: Hide message in throwable

2019-05-22 Thread Gaurav
> On Thu, 16 May 2019 at 09:32, Gaurav wrote: > > > > Hi, > > > > I want to hide the message in the throwable. > > > > What I've tried - > > 1. Create a custom layout by extending AbstractStringLayout. > > 2. Create a pattern parser. >

Hide message in throwable

2019-05-16 Thread Gaurav
Hi, I want to hide the message in the throwable. What I've tried - 1. Create a custom layout by extending AbstractStringLayout. 2. Create a pattern parser. 3. Create a pattern converter by extending ThrowablePatternConverter. Is there a simpler way to do this? In log4j1.2, it was simple to jus

What is the intention behind intervalNanos/nextCheckNanos in FailoverAppender?

2019-02-28 Thread Gaurav
In FailoverAppender, there are 3 member variables, 1.DEFAULT_INTERVAL_SECONDS 2.nextCheckNanos 3.intervalNanos What is the intention behind their use? Can you share any documentation/reason/logic for it?

Unable to write to database(sql server 2012) using log4j2

2017-12-20 Thread Gaurav
Hi, Getting the error: Unable to write to database AppenderLoggingException: Failed to commit transaction logging event or flushing buffer. Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: An error occurred while reading the value from the stream object. Error: "java.io.IOExcepti

Add support to parse message elements in JDBCAppender column configuration

2017-10-06 Thread gaurav deshpande
e in column tag in jdbcappender but thats not working. Input: custom message Output: store it into database table If not available, can you please add support to parse message elements in JDBCAppender column configuration Thanks, Gaurav