Re:Re: A Question about KafkaAppender

2025-01-27 Thread Yuepeng Pan
Many thanks to Volkan and Piotr for responses. I believe I have clarified some important issues: - The logging currently does not have features available that can support my use case. - Why the Kafka appender is scheduled to be removed from the log repository and the reasons behind it. - T

Re: A Question about KafkaAppender

2025-01-27 Thread Piotr P. Karwasz
Hi Volkan, On 27.01.2025 20:20, Volkan Yazıcı wrote: Have you considered the async. appender ? It can be configured to drop to requests if the buffer is full, i.e., Kafka is not keeping up. IIRC the Kafka Appe

Re: Re: Re: A Question about KafkaAppender

2025-01-27 Thread Volkan Yazıcı
Yuepeng, I understand your case – indeed a burst filter won't help you if you don't know the capacity of the Kafka writer in advance, which I presume to be unlikely. Have you considered the async. appender ? It can

Re: A Question about KafkaAppender

2025-01-27 Thread Piotr P. Karwasz
Hi all, On 27.01.2025 14:58, Volkan Yazıcı wrote: I will soon write a detailed response on resurrecting Kafka appender. It is probably worth reaching out to the Apache Kafka PMC again. Since the upcoming Kafka 4.x will use Log4j 2 Core instead of Log4j 1/Reload4j, Kafka recently dropped thei

Re:Re: Re: A Question about KafkaAppender

2025-01-27 Thread Yuepeng Pan
Thank you very much for the response! > What you describe is exactly what the burst filter is designed for. Can you > explain why it doesn’t work for you? IIUC, The Filter and Appender are two independent components. The difference between our scenario requirements and BurstFilter is as foll

Re: Re: A Question about KafkaAppender

2025-01-27 Thread Volkan Yazıcı
What you describe is exactly what the burst filter is designed for. Can you explain why it doesn’t work for you? I will soon write a detailed response on resurrecting Kafka appender. Op ma 27 jan 2025 om 14:41 schreef Yuepeng Pan > Thanks Volkan for the comments and help. > > > > > It sounds li

Re:Re: A Question about KafkaAppender

2025-01-27 Thread Yuepeng Pan
Thanks Volkan for the comments and help. It sounds like neither of the two methods mentioned above can meet the business scenario requirements: We just want the Kafka appender to discard data only when its output rate is lower than the log production rate. > If you are actively using

Re: A Question about KafkaAppender

2025-01-27 Thread Volkan Yazıcı
Hello Yuepeng, If it is okay to drop log events when the appender isn't keeping up, you can use a burst filter . If your burst/congestion periods are temporary and you don't want to lose events, you can consider employing an asy

A Question about KafkaAppender

2025-01-26 Thread Yuepeng Pan
Hi, masters.. Recently, I have enabled the Kafka appender in certain scenarios to collect logs, but we encountered an issue: When the log generation speed exceeds the write speed of Kafka, it negatively impacts the processing speed of core business logic because the high-frequency log output is

Re: Question regarding JSON Template timestamp rendering

2021-11-03 Thread Andrew Harris (andharr2)
​Volkan, Happy to hear that you have recovered! Thank you also for the info on the 2.15.0 release, I'm looking forward to it for several reasons. I'll try to answer your questions: > How do you purpose JTL? My organization is looking to standardize application logging across our platform. Our

Re: Question regarding JSON Template timestamp rendering

2021-11-01 Thread Volkan Yazıcı
Thanks so much for confirming the fix and more importantly, sparing time to share the issue with us. 2.15.0 is supposed to be released soon. We are waiting for some changes from another maintainer (I am looking at you Ralph) and then we will be done. What I would really appreciate is some details

Re: Question regarding JSON Template timestamp rendering

2021-10-28 Thread Andrew Harris (andharr2)
Volkan, I am happy to report that the change in 2dd7063fb6c6fe73070aded6607a2e2d53613b46 appears to have resolved the issue! After building and installing a local snapshot of log4j-layout-template-json from release-2.x, I now see the following in my test application: ``` {"timestamp.epoch":163

Re: Question regarding JSON Template timestamp rendering

2021-10-28 Thread Volkan Yazıcı
Andrew, I have pushed a fix to the `release-2.x` branch with commit `2dd7063fb6c6fe73070aded6607a2e2d53613b46`. Mind giving it a try, please? For the records, created LOG4J2-3183 . On Thu, Oct 28, 2021 at 11:02 AM Volkan Yazıcı wrote: > I sadly

Re: Question regarding JSON Template timestamp rendering

2021-10-28 Thread Volkan Yazıcı
I sadly am able to reproduce the issue Andrew: public final class TimeDriftDemo { public static void main(String[] args) throws InterruptedException { initLog4j(); Logger logger = LogManager.getLogger(); for (int i = 0; i < 5; i++) { logger.info("{}", i);

Re: Question regarding JSON Template timestamp rendering

2021-10-27 Thread Andrew Harris (andharr2)
Volkan, I was able to get the test case you supplied running in JsonTemplateLayoutTest. I confirm that it passes on my system as well. In fact, all the tests in `log4j-layout-template-json` at `rel/2.14.1` pass (except JsonTemplateLayoutGcFreeTest, which I'm willing to believe is a quirk of tha

Re: Question regarding JSON Template timestamp rendering

2021-10-26 Thread Andrew Harris (andharr2)
Volkan, I must be making a mistake somewhere. As a check on basic assumptions, I sought to craft a simple Java application that emits logs via a Logger, using a logging configuration like in my first message. I found that the pattern-formatted timestamp resolver operates as expected, whereas th

Re: Question regarding JSON Template timestamp rendering

2021-10-25 Thread Andrew Harris (andharr2)
t Subject: Re: Question regarding JSON Template timestamp rendering Hey Andrew, Thanks so much for reaching out. I have tried to reproduce your issue via unit tests, but had no luck so far: @Test void test_conflicting_timestamps() { // Create the event template. final String eve

Re: Question regarding JSON Template timestamp rendering

2021-10-25 Thread Volkan Yazıcı
Hey Andrew, Thanks so much for reaching out. I have tried to reproduce your issue via unit tests, but had no luck so far: @Test void test_conflicting_timestamps() { // Create the event template. final String eventTemplate = writeJson(asMap( "timestamp.epoch", asMap(

Question regarding JSON Template timestamp rendering

2021-10-25 Thread Andrew Harris (andharr2)
Hi friends, I have a JSON Template layout in a project I maintain, and I have noticed a behavior in how timestamps are rendered that I did not expect. I went through the JSON Template resolver source for a few minutes last week and did not find an explanation, nor did I find any open issues or

Re: Question on accessing the threadcontext in pattern vs lookup

2021-04-11 Thread Lars-Fredrik Smedberg
Hi Thanks all for the answers. I actually did some debugging and changed to the thread context data on the log event around the time for the first reply (when i saw that the log event was constructed before passing it to the async logger). The reason for using the lookup and not only %X is that i

Re: Question on accessing the threadcontext in pattern vs lookup

2021-04-10 Thread Ralph Goers
Your assumption is correct, but there is a way to avoid the problem. The issue is that, as one might expect, the ThreadContext is thread specific. So when the pattern is resolved it will be on the thread where the event is to be written, not the thread that called the logging method. You can av

Re: Question on accessing the threadcontext in pattern vs lookup

2021-04-10 Thread Volkan Yazıcı
AFAIC, your reasoning on why m:testkey not working is correct. Why don't you create your own PatternConverter rather than using a custom lookup? Additionally, if your log sink accepts JSON, you can introduce a custom resolver to JsonTemplateLayout too -- though note that this feature will be avail

Question on accessing the threadcontext in pattern vs lookup

2021-04-09 Thread Lars-Fredrik Smedberg
Hi! We are using different appenders with a pattern layout that both read values from ThreadContext using %X and through a custom lookup that internally access the ThreadContext If we use a pattern such as "%X{testkey} $${m:testkey} %m" (the lookup assigned to prefix m access the same key from th

Re: Log4j2 Question migration.

2020-02-18 Thread Ralph Goers
This response indicates that you didn’t read my email. Please re-read that. Ralph > On Feb 18, 2020, at 8:57 AM, EDMONDO SENA wrote: > > Hi Ralph, > > in log4j2 there are no the following packages: > > AbsoluteTimeDateFormat.ISO8601_DATE_FORMAT > AbsoluteTimeDateFormat.ABS_TIME_DATE_FORMAT

Re: Log4j2 Question migration.

2020-02-18 Thread Matt Sicker
If you’re using those in your code as normal date time formatting logic, I’d recommend looking at java.time in Java 8. If you’re configuring the pattern layout or similar with the log event time stamp, then that’s all documented here: http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternL

Re: Log4j2 Question migration.

2020-02-18 Thread EDMONDO SENA
Hi Ralph, Below are not available in log4j2 and what is the equivalent ? AbsoluteTimeDateFormat.ISO8601_DATE_FORMAT AbsoluteTimeDateFormat.ABS_TIME_DATE_FORMAT AbsoluteTimeDateFormat.DATE_AND_TIME_DATE_FORMAT ISO8601DateFormat AbsoluteTimeDateFormat DateTimeDateFormat Can you help me with an

Re: Log4j2 Question migration.

2020-02-18 Thread EDMONDO SENA
Hi Ralph, in log4j2 there are no the following packages: AbsoluteTimeDateFormat.ISO8601_DATE_FORMAT AbsoluteTimeDateFormat.ABS_TIME_DATE_FORMAT AbsoluteTimeDateFormat.DATE_AND_TIME_DATE_FORMAT ISO8601DateFormat AbsoluteTimeDateFormat DateTimeDateFormat What is the equivalent ? How is it possi

Re: Log4j2 Question migration.

2020-02-18 Thread Ralph Goers
When performing a migration the first step should be to itemize all the customizations you made to Log4j 1.x and what their purpose was. Log4j 2 has more capabilities and a different architecture so there are likely to be completely different ways of solving the problem. Rather than asking how t

Log4j2 Question migration.

2020-02-18 Thread EDMONDO SENA
Hello, I'm going from log4j to log4j2. Now I had in log4j package import for log4j.helpers.AbsoluteTimeDateFormat, log4j.helpers.ISO8601DateFormat and log4j.helpers.OptionConverter. In log4j2 in which packages can I find this management? -

Question about NULL character in a log files.

2019-11-10 Thread Kayak28
Hello, Community: I am using Solr7.4.1 which uses log4j (version 2.11) as one of the components. Like below, some of the log files that Solr generated contain <0x00> (null characters) in the near end of the files. 2019-10-20 06:02:03.643 INFO (coreCloseExecutor-140-thread-4) [ x:corename] o.a.s

Re: Some question when migrating from log4j to log4j2

2017-11-27 Thread Ralph Goers
You can call the getSource() method of the LogEvent and it will return the StackTraceElement of the caller. Ralph > On Nov 27, 2017, at 7:22 PM, 代超 wrote: > > Hi all, > Nowadays I am upgrading the log component. I used to use the log4j and > customize our own appender by extending the org.ap

Re: Stack Overflow Question

2017-09-03 Thread Ralph Goers
not the version you can download from the website - that's very > old and doesn't include the log4j2 support yet. > > On 9/3/17, Grzegorz Świeć wrote: >> Forwarding my stack overflow question. >> How to open log4j2 logs with Appache Chainsaw >> https://stackoverfl

Re: Stack Overflow Question

2017-09-03 Thread Scott Deboy
zegorz Świeć wrote: > Forwarding my stack overflow question. > How to open log4j2 logs with Appache Chainsaw > https://stackoverflow.com/q/46022519/6608856?sem=2 > > Hope you guys can help. > > - To

Stack Overflow Question

2017-09-03 Thread Grzegorz Świeć
Forwarding my stack overflow question. How to open log4j2 logs with Appache Chainsaw https://stackoverflow.com/q/46022519/6608856?sem=2 Hope you guys can help.

Re: Question about several Async Loggers + RandomAccessFIle appenders with immediateFlush = false

2016-06-20 Thread Anthony Maire
le appenders configured with > immediateFlush = false to take advantage of the potential I/O batching, and > the results are very good :) > > However I have a question about the flush on end of batch mechanism when > there are several appenders to flush. > > *Case one:* > >

Re: Question about how to create new log files on an hourly not depend on new byte stream log appended

2016-06-19 Thread Remko Popma
l db delay if > we only pick up the file having suffix '.log'. > because the content still remain in file named 'game' not be suffix > '.log'. > > > my question is how to create new log files on an hourly not depend on new > byte stream log appended. > > > yours > Allen

Question about how to create new log files on an hourly not depend on new byte stream log appended

2016-06-19 Thread ?????Y
rted into mysql db delay if we only pick up the file having suffix '.log'. because the content still remain in file named 'game' not be suffix '.log'. my question is how to create new log files on an hourly not depend on new byte stream log appended. yours Allen

Question about several Async Loggers + RandomAccessFIle appenders with immediateFlush = false

2016-06-17 Thread Anthony Maire
Hello As suggested in AsyncLogger javadoc, I made some performance tests on my application with (Rolling)RandomAccessFile appenders configured with immediateFlush = false to take advantage of the potential I/O batching, and the results are very good :) However I have a question about the flush

Re: Question about async logger wait strategies

2016-06-14 Thread Anthony Maire
If the sources have not been moved, it's still considered as experimental on master (and it was still experimental on 3.3.5-rc2 tag) https://github.com/LMAX-Exchange/disruptor/blob/master/src/main/java/com/lmax/disruptor/LiteBlockingWaitStrategy.java 2016-06-14 7:15 GMT+02:00 Gary Gregory : >

Re: Question about async logger wait strategies

2016-06-13 Thread Gary Gregory
On Mon, Jun 13, 2016 at 9:51 PM, Anthony Maire wrote: > Basically you want a logging framework to have as little impact as possible > on the application. That's why the sleeping strategy is a good > general-purpose choice : no allocation, no lock for the application > threads, and a CPU consumpti

Re: Question about async logger wait strategies

2016-06-13 Thread Anthony Maire
Basically you want a logging framework to have as little impact as possible on the application. That's why the sleeping strategy is a good general-purpose choice : no allocation, no lock for the application threads, and a CPU consumption when "idle" that will stay pretty low on most OS (it roughly

Re: Question about async logger wait strategies

2016-06-13 Thread Remko Popma
Currently there isn't but there's no real reason not to. That reminds me we should add LiteBlocking (a standard Disruptor wait strategy). Sent from my iPhone > On 2016/06/14, at 5:50, Matt Sicker wrote: > > Also, is there a way to specify a custom WaitStrategy, or is that pointless? > >> On

Re: Question about async logger wait strategies

2016-06-13 Thread Remko Popma
The busy-spin wait strategy is not something I want to promote since it basically dedicates a full core to the logging background thread. It's there mostly for testing and perhaps for hardcore users who are familiar with the Disruptor. Sent from my iPhone > On 2016/06/14, at 3:24, Matt Sicker

Re: Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
Also, is there a way to specify a custom WaitStrategy, or is that pointless? On 13 June 2016 at 13:24, Matt Sicker wrote: > The code has a case for the busy spin strategy, but it's not listed on > this page: . Is > this unsupported or shoul

Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
The code has a case for the busy spin strategy, but it's not listed on this page: . Is this unsupported or should it be added to the docs? -- Matt Sicker

RE: question

2016-03-24 Thread Helm, Mary (MCS Release)
Subject: RE: question Are you generating logs on windows and viewing them on linux or vice versa? Gary On Mar 24, 2016 9:55 AM, "Helm, Mary (MCS Release)" wrote: > Yes, an extra empty (or blank) line is appearing between the log > statements written by the application code - n

RE: question

2016-03-24 Thread Gary Gregory
itself > though. Anything in the log from JBOSS itself is showing as single-spaced. > > Thanks, > Mary > > > -Original Message- > From: Remko Popma [mailto:[email protected]] > Sent: Thursday, March 24, 2016 12:46 PM > To: Log4J Users List > Subject: Re: quest

RE: question

2016-03-24 Thread Helm, Mary (MCS Release)
[email protected]] Sent: Thursday, March 24, 2016 12:46 PM To: Log4J Users List Subject: Re: question Mary, I recommend you raise a Jira ticket for this. I don't know about the other Log4j community members, but I currently don't have time to look into this and without a Jira ticket it may qu

Re: question

2016-03-24 Thread Remko Popma
t; > > > Thanks, > Mary > > -Original Message- > From: Helm, Mary (MCS Release) > Sent: Thursday, February 18, 2016 11:51 AM > To: [email protected] > Subject: question > > We have noticed this behavior on app servers running either JBOSS

RE: question

2016-03-24 Thread Helm, Mary (MCS Release)
Thanks, Mary -Original Message- From: Helm, Mary (MCS Release) Sent: Thursday, February 18, 2016 11:51 AM To: [email protected] Subject: question We have noticed this behavior on app servers running either JBOSS EAP 6.4 or Wildfly 9.0.1 Final

question

2016-02-18 Thread Helm, Mary (MCS Release)
We have noticed this behavior on app servers running either JBOSS EAP 6.4 or Wildfly 9.0.1 Final. We are using the Console appender within our log4j2.xml file for our web-app and we are seeing that any log4j2 messages written to the log are formatted as double-spaced. Removing the "%n" from o

Re: Question - RollingFileAppender creates empty files

2015-09-17 Thread Ralph Goers
the system, that's why there are >> empty log files. >> But I think you answered my question, it's not possible to set up the >> appender in the XML config file to create the log file only in case if >> there's something that needs to be written to it. &g

Re: Question - RollingFileAppender creates empty files

2015-09-17 Thread Gary Gregory
p, I'm getting one file for one appender, > but some appenders might be unused by the system, that's why there are > empty log files. > But I think you answered my question, it's not possible to set up the > appender in the XML config file to create the log file only in

Re: Question - RollingFileAppender creates empty files

2015-09-16 Thread Csilla Fabian
I have several appenders set up, I'm getting one file for one appender, but some appenders might be unused by the system, that's why there are empty log files. But I think you answered my question, it's not possible to set up the appender in the XML config file to create the l

Re: Question - RollingFileAppender creates empty files

2015-09-16 Thread Ralph Goers
The files are created as soon as the output stream is opened. This happens when the Appender starts. I’d have to see your configuration to understand why you would be getting multiple files though. Ralph > On Sep 16, 2015, at 7:23 AM, Csilla Fabian wrote: > > Hello, > > I'm using log4j2 Ro

Re: Question - RollingFileAppender creates empty files

2015-09-16 Thread Remko Popma
Hi, Can you provide your configuration file? Remko On Wed, Sep 16, 2015 at 11:23 PM, Csilla Fabian wrote: > Hello, > > I'm using log4j2 RollingFileAppenders to log events of a complex system. > My problem is that empty log files are created for every appender even if > the given subsystem has

Question - RollingFileAppender creates empty files

2015-09-16 Thread Csilla Fabian
Hello, I'm using log4j2 RollingFileAppenders to log events of a complex system. My problem is that empty log files are created for every appender even if the given subsystem has nothing to write to them. Is there any way to restrict the number of files using just the XML configuration file? I

Re: Question about RollingFileAppender

2015-09-02 Thread Remko Popma
Jerry, As of now, log4j 2 does not support auto-delete on rollover. However, this is a commonly requested feature and is on the todo list. We just haven't gotten around to working on it yet. The relevant Jira ticket is https://issues.apache.org/jira/browse/LOG4J2-435 Remko Sent from my iPhon

Question about RollingFileAppender

2015-09-02 Thread Boyang(Jerry) Peng
Hello, I am using RollingFileAppender to limit the number of log files.  Is there a way to use the Default Rollover Strategy with a time %d{-MM-dd-HH-mm-ss} with a  and set ?  How can use a time based format for the name of my log but limit the number of logs to a certain number and after th

Question about LOG4J2-673 (plugin preloading fails in shaded jar files)

2015-07-30 Thread Theresa . Niederberger
Hi, we use the maven-shade-plugin and have recently moved from log4j to log4j2. Since we define a custom appender, we now we have the problem described in Jira Task LOG4J2-673 ( https://issues.apache.org/jira/browse/LOG4J2-673). My question is: since the task is assigned critical, is there a

Re: Question about using log4j

2015-07-06 Thread Gary Gregory
If the machine crashes, open files are at the whim of your OS... The '@' are probably what is on the disk near the end of the file. Gary On Wed, Jul 1, 2015 at 1:43 AM, dyf6372 wrote: > We use log4j to print the log about our system. Sometimes the computer > will be crashed and reboot. Before t

Question about using log4j

2015-07-01 Thread dyf6372
We use log4j to print the log about our system. Sometimes the computer will be crashed and reboot. Before the computer down, the log4j will print many "@". I want to know what the meaning of “@“ is and when it will appear. Thank you very much! My Best Wishes! 董一峰 15201346372 [email protected] dy

Question about AsyncAppender vs FailoverAppender

2015-03-09 Thread jeremy
After a quick code inspection it appears that AsyncAppender does not treat running out of space in its ring buffer as an exception. If we were to configure AsyncAppender with blocking false ignoreExceptions false and no errorRef When it runs out of space in the ring buffer it will log an error

RE: Question regarding Log4J 2

2013-11-11 Thread Gary Gregory
It feels like we are pretty close. Maybe a month, maybe two.  Gary Original message From: anuj kumar Date:11/11/2013 07:32 (GMT-05:00) To: [email protected] Subject: Question regarding Log4J 2 Hi, I am planning to use Log4J 2 in my application but I see that

Question regarding Log4J 2

2013-11-11 Thread anuj kumar
Hi, I am planning to use Log4J 2 in my application but I see that it is still in Beta phase. Can someone tell me when I can expect a FINAL version of Log4J 2? Thanks, -- *Anuj Kumar*

Re: roll over strategy question

2013-10-20 Thread Arkin Yetis
I looked into this and it seems that if a count is used to determine the file to be deleted, some of the information needed (interval, modulate) is in the TimeBasedTriggeringPolicy and the DefaultRolloverStrategy does not have that information. Would it be a good idea to introduce the concept of a

Re: roll over strategy question

2013-10-19 Thread Ralph Goers
OK - feel free to submit a patch! Ralph On Oct 19, 2013, at 8:47 PM, Arkin Yetis wrote: > Thanks, opened https://issues.apache.org/jira/browse/LOG4J2-435. > > Arkin > > > On Tue, Oct 15, 2013 at 8:34 AM, Ralph Goers > wrote: > >> Not currently. You should create a Jira to request it. I s

Re: roll over strategy question

2013-10-19 Thread Arkin Yetis
Thanks, opened https://issues.apache.org/jira/browse/LOG4J2-435. Arkin On Tue, Oct 15, 2013 at 8:34 AM, Ralph Goers wrote: > Not currently. You should create a Jira to request it. I suppose the max > attribute could be used to limit the number of days if no %i is present, > but if it is then

Re: roll over strategy question

2013-10-15 Thread Ralph Goers
Not currently. You should create a Jira to request it. I suppose the max attribute could be used to limit the number of days if no %i is present, but if it is then it would only apply to that so it really wouldn't limit the total number of files. So I am thinking a second attribute might be a

Re: roll over strategy question

2013-10-15 Thread Arkin Yetis
Got it. It is rolling. I thought it would limit across days, too. Is there a way to do cleanup across days currently? Thank you. - Arkin On Tuesday, October 15, 2013, Ralph Goers wrote: > What behavior are you seeing? Is it never rolling or something else? > > The max attribute only applies if

Re: roll over strategy question

2013-10-15 Thread Ralph Goers
What behavior are you seeing? Is it never rolling or something else? The max attribute only applies if you have a %i in the file pattern. It would limit to 2 files per day if you had one in the patten, but not 2 files across days. Ralph > On Oct 14, 2013, at 6:07 PM, Arkin Yetis wrote: > >

Re: roll over strategy question

2013-10-14 Thread Arkin Yetis
Hi, I can't seem to get the DefaultRolloverStrategy to work with the following configuration. Is there anything I am doing wrong? Thanks, Arkin

Re: General config question for Log4J2

2013-04-23 Thread Remko Popma
tive. > > > On Tue, Apr 23, 2013 at 8:46 PM, Ralph Goers > wrote: > >> Your trace file will also contain info and above. From Peter's question I >> understood him to mean he only wants events at that level. We don't have a >> filter that does that spe

Re: General config question for Log4J2

2013-04-23 Thread Ralph Goers
PM, Remko Popma wrote: > I see. I understood Peter's question differently. Let's hope one of our > answers solves his problem! :-) > > Sent from my iPhone > > On 2013/04/24, at 9:46, Ralph Goers wrote: > >> Your trace file will also contain in

Re: General config question for Log4J2

2013-04-23 Thread Peter DePasquale
cumentation will mature to the point where I can learn how to use the software from a novice's (to logging) perspective. On Tue, Apr 23, 2013 at 8:46 PM, Ralph Goers wrote: > Your trace file will also contain info and above. From Peter's question I > understood him to mean he onl

Re: General config question for Log4J2

2013-04-23 Thread Remko Popma
I see. I understood Peter's question differently. Let's hope one of our answers solves his problem! :-) Sent from my iPhone On 2013/04/24, at 9:46, Ralph Goers wrote: > Your trace file will also contain info and above. From Peter's question I > understood him to mean he

Re: General config question for Log4J2

2013-04-23 Thread Ralph Goers
Your trace file will also contain info and above. From Peter's question I understood him to mean he only wants events at that level. We don't have a filter that does that specifically so I used two threshold filters to do it. Ralph On Apr 23, 2013, at 5:42 PM, Remko Popma wrote:

Re: General config question for Log4J2

2013-04-23 Thread Ralph Goers
Actually, in reconsidering your question the solution is going to be a bit messy. I haven't tried it but you should be able to do: The first threshold filter will discard events with a logging level higher than what your want. The second discards e

Re: General config question for Log4J2

2013-04-23 Thread Remko Popma
I don't think the docs have an example yet. This one worked for me: %d %-5p %c{1.} [%t] %m %ex%n %d %-5p %c{1.} [%t] %m %ex%n Sent from my iPhone On 2013/04/24, at 9:22, Peter DePasquale wrot

Re: General config question for Log4J2

2013-04-23 Thread Peter DePasquale
Can you point me to an example in the documentation? I didn't see anything like that in there, that I recall... On Tue, Apr 23, 2013 at 6:28 PM, Ralph Goers wrote: > You cannot have two root loggers but you can have multiple appender-refs > on them. Each appender-ref can have its own log level

Re: General config question for Log4J2

2013-04-23 Thread Ralph Goers
You cannot have two root loggers but you can have multiple appender-refs on them. Each appender-ref can have its own log level so I believe you get the same behavior that you are looking for. Ralph On Apr 23, 2013, at 12:37 PM, Peter DePasquale wrote: > Is it possible to use two root loggers,

General config question for Log4J2

2013-04-23 Thread Peter DePasquale
Is it possible to use two root loggers, one to capture trace and one to capture errors (or more generally, two different levels)? If so, can someone please provide a simple config example? Thanks. -- Peter J. DePasquale, Ph.D. Department of Computer Science The College of New Jersey (e) depasqua

Re: Simple (?) question about logging behavior (additive issue?)

2013-03-26 Thread Peter DePasquale
I'm still stumped on this issue and would welcome any thoughts or feedback. In fact, I've tried to replicate my steps in my real application and obtained similar results. Even reducing the number of loggers to just the base package in my 'real' app results in empty files. On Mon, Mar 25, 2013 at

Simple (?) question about logging behavior (additive issue?)

2013-03-25 Thread Peter DePasquale
Hi, I've been trying to track down some failure to log in my Tomcat application. In doing so, I've written a small Test class in which I log .entry(), .exit(), .trace(), and error() events (source code is below). I've also copied the log4j2.xml file and the output files created by the logging sys

Re: Map Lookup Question

2012-12-26 Thread Ralph Goers
T Minella > > > - Original Message - > From: "Ralph Goers" > To: "Log4J Users List" > Sent: Monday, December 24, 2012 12:03:43 PM > Subject: Re: Map Lookup Question > > You are probably encountering > https://issues.apache.org/jira/

Re: Map Lookup Question

2012-12-26 Thread Ralph Goers
" > To: "Log4J Users List" > Sent: Monday, December 24, 2012 12:03:43 PM > Subject: Re: Map Lookup Question > > You are probably encountering > https://issues.apache.org/jira/browse/LOG4J2-129. This has been fixed in > trunk. If you check it out and build it

Re: Map Lookup Question

2012-12-26 Thread Michael Minella
s null. Thanks, Michael T Minella - Original Message - From: "Ralph Goers" To: "Log4J Users List" Sent: Monday, December 24, 2012 12:03:43 PM Subject: Re: Map Lookup Question You are probably encountering https://issues.apache.org/jira/browse/LOG4J2-129. This has been f

Re: Map Lookup Question

2012-12-24 Thread Ralph Goers
epackage.log4j.BoringLoggingClass - I am logging: 0 > Thread_3 09:30:52.519 [Thread-4] ERROR > org.somepackage.log4j.BoringLoggingClass - I am logging: 0 > Main 09:30:52.519 [Thread-3] ERROR org.somepackage.log4j.BoringLoggingClass - > I am logging: 0 > Thread_1 09:30:52.519 [Thread

Re: Map Lookup Question

2012-12-24 Thread Michael Minella
.BoringLoggingClass - I am logging: 1 ... Thanks, Michael T Minella - Original Message - From: "Ralph Goers" To: "Log4J Users List" Sent: Sunday, December 23, 2012 2:15:15 PM Subject: Re: Map Lookup Question I started thinking about this and realized I have given you

Re: Map Lookup Question

2012-12-23 Thread Ralph Goers
hen you would need to use the RoutingAppender. Ralph On Dec 21, 2012, at 4:23 PM, Michael Minella wrote: > > I'm looking at the log4j 2 's thread specific features and had a question. In > my code I set an id as follows: > > > > ThreadContext.put( &qu

Re: Map Lookup Question

2012-12-22 Thread Ralph Goers
core > 2.0-beta3 > > > Thanks, > Michael T Minella > > > - Original Message - > From: "Ralph Goers" > To: "Log4J Users List" > Sent: Friday, December 21, 2012 9:52:01 PM > Subject: Re: M

Re: Map Lookup Question

2012-12-22 Thread Michael Minella
ember 21, 2012 9:52:01 PM Subject: Re: Map Lookup Question Hmm. I just noticed that your question is about the file name. Are you running with beta3? I thought that issue had been brought up in an earlier beta and fixed. Ralph On Dec 21, 2012, at 4:23 PM, Michael Minella wrote: > >

Re: Map Lookup Question

2012-12-21 Thread Ralph Goers
Hmm. I just noticed that your question is about the file name. Are you running with beta3? I thought that issue had been brought up in an earlier beta and fixed. Ralph On Dec 21, 2012, at 4:23 PM, Michael Minella wrote: > > I'm looking at the log4j 2 's thread specific fe

Re: Map Lookup Question

2012-12-21 Thread Ralph Goers
only want to use a single dollar sign as the value won't change and so should be replaced when the configuration is processed. Ralph On Dec 21, 2012, at 4:23 PM, Michael Minella wrote: > > I'm looking at the log4j 2 's thread specific features and had a

Map Lookup Question

2012-12-21 Thread Michael Minella
I'm looking at the log4j 2 's thread specific features and had a question. In my code I set an id as follows: ThreadContext.put( "id" , "Main" ); and attempt to reference it in my configuration file as shown below: < File name = "File" fil

Re: Chainsaw question

2011-08-10 Thread cscsaba
rg/chainsaw/mail-lists.html> >>>> > >>>> >>>> ) >>>> >>>> So, I would like to generate log4j xml by log4php for Chainsaw, but >>>> Chainsaw >>>> drops some error during the processing the log file. >>>

Re: Chainsaw question

2011-08-10 Thread Scott Deboy
n the same entity.* Check this overview : http://pastebin.com/bX3A2Dmm My question is, what cause the parser error ? And xml starts and ends with the same entity then what is the real problem ? Can you point at what could be wro

Re: Chainsaw question

2011-08-10 Thread cscsaba
ile. >> *The errors are : >> Parsing error on line 19 and column 32* >> *XML document structures must start and end within the same >> entity.* >> >> Check this overview : http://pastebin.com/bX3A2Dmm >> >> My question is, what cause

Re: Chainsaw question

2011-08-10 Thread Scott Deboy
* *XML document structures must start and end within the same entity.* Check this overview : http://pastebin.com/bX3A2Dmm My question is, what cause the parser error ? And xml starts and ends with the same entity then what is the real problem ? Can you point at what could be wrong

Chainsaw question

2011-08-10 Thread cscsaba
are : Parsing error on line 19 and column 32* *XML document structures must start and end within the same entity.* Check this overview : http://pastebin.com/bX3A2Dmm My question is, what cause the parser error ? And xml starts and ends with the same entity then what is the real

  1   2   3   4   5   >