How to put working 2 separate log4j2 xml files within the same web app

2019-02-08 Thread Joan Balagueró - ventusproxy
Hello, This is a crosspost, already asked in StackOverflow, no success (https://stackoverflow.com/questions/54535220/how-to-put-working-2-separate- log4j2-xml-files) As a briefing, the question would be how we can have 2 log4j2 configurations working at the same time within the same web

RV: Flush in RollingRandomAccessFile

2018-09-28 Thread Joan Balagueró - ventusproxy
. It wouldn’t be causing your problem though. Ralph > On Sep 28, 2018, at 9:17 AM, Joan Balagueró - ventusproxy > wrote: > > Hi Ralph, > > Below the trace when tomcat is stopped: > > 28-Sep-2018 18:14:36.251 INFORMACIÓN [main] > org.apache.catalina.core.StandardSer

RE: Flush in RollingRandomAccessFile

2018-09-28 Thread Joan Balagueró - ventusproxy
appens during shutdown. Ralph > On Sep 28, 2018, at 8:57 AM, Joan Balagueró - ventusproxy > wrote: > > Hello, > > The jars we have in our app are: log4j-1.2-api-2.11.1.jar, > log4j-api-2.11.1.jar, log4j-core-2.11.1.jar and log4j-web-2.11.1.jar. > > Are the right

RE: Flush in RollingRandomAccessFile

2018-09-28 Thread Joan Balagueró - ventusproxy
Hello, The jars we have in our app are: log4j-1.2-api-2.11.1.jar, log4j-api-2.11.1.jar, log4j-core-2.11.1.jar and log4j-web-2.11.1.jar. Are the right jars, or may I add something else? Thanks, Joan. -Mensaje original- De: Joan Balagueró - ventusproxy [mailto:joan.balagu

RE: Flush in RollingRandomAccessFile

2018-09-27 Thread Joan Balagueró - ventusproxy
nual/webapp.html <http://logging.apache.org/log4j/2.x/manual/webapp.html>. Ralph > On Sep 27, 2018, at 9:02 AM, Joan Balagueró - ventusproxy > wrote: > > Hi Ralph, > > After adding the log4j-web-2.11.1.jar to our app, it doesn't work yet. > > Do I need to add something to the we

RE: Flush in RollingRandomAccessFile

2018-09-27 Thread Joan Balagueró - ventusproxy
2018 17:33 Para: Log4J Users List Asunto: Re: Flush in RollingRandomAccessFile Are you using the log4j-web jar? It is supposed to handle this. Ralph > On Sep 27, 2018, at 8:14 AM, Joan Balagueró - ventusproxy > wrote: > > Hello, > > > > After sending thousands of

RE: Flush in RollingRandomAccessFile

2018-09-27 Thread Joan Balagueró - ventusproxy
? It is supposed to handle this. Ralph > On Sep 27, 2018, at 8:14 AM, Joan Balagueró - ventusproxy > wrote: > > Hello, > > > > After sending thousands of requests to our app, we stop the sender and > the log file appears like below: > > > > 1,54.38.179.175,2

Flush in RollingRandomAccessFile

2018-09-27 Thread Joan Balagueró - ventusproxy
Hello, After sending thousands of requests to our app, we stop the sender and the log file appears like below: 1,54.38.179.175,2018-09-27 16:55:51.618,A,13,A,39,A,72,A,120,N,,54.38.179.182:8080,g,8457,403,683,58,ok ,2018-09-27 16:55:51.677 1,54.38.179.17 Now we stop tomcat (when our

RE: Problem with daily rotation on log4j2 RollingFile

2018-09-05 Thread Joan Balagueró - ventusproxy
t. >> >> Ralph >> >>> On Aug 24, 2018, at 4:37 PM, Joan Balagueró - ventusproxy < >> joan.balagu...@ventusproxy.com> wrote: >>> >>> Hello, >>> No luck. I tried with DateLookup, but it doesn't work: >>> > filePattern=&q

RE: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
{}. TimeBasedTriggeringPolicy requires the %d to figure out what the rollover interval is. If you use ${pattern} it will be part of the file name but won’t impact the rollover interval. Ralph > On Aug 24, 2018, at 12:43 PM, Joan Balagueró - ventusproxy > wrote: > > Sorry, is th

RE: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
n it looks like. > > On Fri, 24 Aug 2018 at 11:30, Joan Balagueró - ventusproxy < > joan.balagu...@ventusproxy.com> wrote: > >> Hello, >> >> >> >> I’m using RollingFileAppender with full async logging. This is the config: >> >> >&

RE: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
with daily rotation on log4j2 RollingFile It is surprising to me that it would have been any different in Log4j. I believe it used similar logic for rolling over. I’d have to look at the code and check though. Ralph > On Aug 24, 2018, at 11:32 AM, Joan Balagueró - ventusproxy > wrote: &

RE: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
off using the CronTriggeringPolicy as it has a background thread that checks for the time to rollover. Ralph > On Aug 24, 2018, at 9:30 AM, Joan Balagueró - ventusproxy > wrote: > > Hello, > > > > I知 using RollingFileAppender with full async log

RE: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
leDateFormat there, not PatternLayout. Or > you could put the date in a $${} to delay expansion it looks like. > > On Fri, 24 Aug 2018 at 11:30, Joan Balagueró - ventusproxy < > joan.balagu...@ventusproxy.com> wrote: > >> Hello, >> >> >> >> I’m using

Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Joan Balagueró - ventusproxy
Hello, I’m using RollingFileAppender with full async logging. This is the config: %m%d{-MM-dd HH:mm:ss.SSS}%n I started to send requests the 2018-08-22, the vproxy_access.2018-08-22 was correctly created and

Verifying we are using async loggers

2018-08-16 Thread Joan Balagueró - ventusproxy
Hello, We are using async loggers in our log4j2.xml, enabling -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContex tSelector when we start tomcat. When tomcat starts, we can see: 2018-08-07 21:03:56,535 localhost-startStop-1 TRACE Using default SystemClock for

RE: Log4j2 rolling file rotation by hour not working

2017-06-02 Thread Joan Balagueró - ventusproxy
st you try the CronTriggeringPolicy instead o the TimeBasedTriggeringPolicy. Ralph > On Jun 2, 2017, at 3:19 AM, Joan Balagueró - ventusproxy > <joan.balagu...@ventusproxy.com> wrote: > > Hello, > > > > I致e posted this in stackoverflow, with no success. So I知 trying here

Log4j2 rolling file rotation by hour not working

2017-06-02 Thread Joan Balagueró - ventusproxy
Hello, I’ve posted this in stackoverflow, with no success. So I’m trying here now. I'm seeing the following behaviour in log4j2, not sure if it's the expected. This is part of my log4j.xml: %m%d{-MM-dd HH:mm:ss.SSS}%n The log.rotateAccess is a