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
. 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
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
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
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
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
? 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
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
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
{}. 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
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:
>>
>>
>&
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:
&
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
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
Hello,
Im 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
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
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
Hello,
Ive posted this in stackoverflow, with no success. So Im 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
18 matches
Mail list logo