Re: Simple test case for logging uner a tomcat web app

2013-04-23 Thread Remko Popma
Peter, I don't have Tomcat installed but I was able to reproduce the problem in a standalone test using your configuration. There is a couple of things I found. First, File appenders have these configuration settings by default: bufferedIO="true" and immediateFlush="false". This means that mess

Re: General config question for Log4J2

2013-04-23 Thread Remko Popma
Peter, I understand your frustration. Let me try to help. I'm at work now, so please understand if I am unable to reply to your messages immediately. First, I tried to do what you did originally (in your March 25th post), which is a root logger and a named logger, each having a different lev

Simple test case for logging uner a tomcat web app

2013-04-23 Thread Peter DePasquale
I continue to struggle achieving basic logging results under my web app under tomcat. It seemed to work months ago, but when I upgraded to the latest beta logging failed. I returned to examine my config and failed to solve the problem. I emailed this list about this and I received no response. Aft

Re: General config question for Log4J2

2013-04-23 Thread Ralph Goers
The approach I did is documented (perhaps poorly) at http://logging.apache.org/log4j/2.x/manual/configuration.html in the section titled configuring filters. Adding the level to the appender-ref may not be documented. That was missed when the feature was added. Ralph On Apr 23, 2013, at 5:50

Re: General config question for Log4J2

2013-04-23 Thread Peter DePasquale
I am having a very difficult time learning the configuration system and am very frustrated by the documentation. I had hoped to learn the system well enough to possibly contribute to the project with respect to a tutorial or other documentation, but I've concluded that I can no longer spend so much

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 only wants events at t

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: > I don't thi

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 events lowe

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: log4cxx - reaching out for interested developers

2013-04-23 Thread Christian Grobmeier
On Tue, Apr 23, 2013 at 6:19 PM, Nick Williams wrote: > Lacking any responses, I'll chime in: > > I didn't know log4cxx existed. The only Cxx code I write is Java+Native. With > that said, now that I know it exists, I will investigate using it in my > native code; I'm not sure. > > I'd love to t

Re: log4cxx - reaching out for interested developers

2013-04-23 Thread Nick Williams
Lacking any responses, I'll chime in: I didn't know log4cxx existed. The only Cxx code I write is Java+Native. With that said, now that I know it exists, I will investigate using it in my native code; I'm not sure. I'd love to try to help some, but I simply don't have time right now. I'm in th