A second configuration is loaded and overwrites mine

2018-06-25 Thread Alexander Magnusson
Bean org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEWARN DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEINFO DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=/dk,component=Appenders,name=devnull TRACE StatusLogger Usin

Async logger context selector creates a throwable in JSON layout

2018-05-11 Thread Alexander Magnusson
Hello, I'm currently migrating our codebase to Log4j2 (2.9.1) in a Tomcat 9.0.7 environment, and while testing different configurations I noticed a weird, what i think also undocumented, difference between the standard usage and when starting with -DLog4jContextSelector=org.apa che.logging.log4j.co

Re: log4j2 how to write a wrapper that passes the class name of my own

2014-11-02 Thread Alexander Lehmann
I see that the generated class casts the Logger to AbstractLogger to get the ExtendedLogger, is this always the case? I know that logger classes should extended AbstractLogger and not just implement Logger, but how can we be sure? On Mon, Oct 27, 2014 at 12:49 AM, Remko Popma wrote: > Alexan

log4j2 how to write a wrapper that passes the class name of my own

2014-10-26 Thread Alexander Lehmann
gging method names works, so I'm probably missing something obvious) Thanks for your help bye, Alexander -- Alexander Lehmann http://about.me/alexlehm

Omit xml part

2010-11-02 Thread Alexander Curvers
.. can i configure Log4j to just not log that line/property of the xml message? Regards Alexander - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h

Re: How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Alexander Spitzer
hmmm.. so does this mean that if I want to define my own pattern layout, it is not possible? -alex spitzer On Mon, Sep 28, 2009 at 3:50 PM, Simon Gibbs wrote: > Alexander Spitzer wrote: > > log4j does not appear to append the stack trace onto the event before > passing it onto

Re: How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Alexander Spitzer
can see that my "JUST TESTIN" appender only shows the string, and not the exception stack trace. -alex spitzer Cell: 617.407.2274 AIM: AlexSpitzer On Mon, Sep 28, 2009 at 12:51 PM, Simon Gibbs wrote: > Alexander Spitzer wrote: >> if they use >> logger.error("this is

Re: How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Alexander Spitzer
lso be overloading some Logger methods too? Does that make more sense? Am I still way off on what I was looking to do? Is this just as confusing, but in a different form :) Thanks! -alex spitzer Cell: 617.407.2274 AIM: AlexSpitzer On Mon, Sep 28, 2009 at 11:29 AM, Michael Erskine wro

How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Alexander Spitzer
Is it possible to write a custom appender that can take an exception as a second parameter? I wrote a custom appender per the instructions on the log4j site which extends AppenderSkeleton. Later, I found out that some of the developers use logger.xxx(String, Throwable) instead of just the vanilla

Re: Can I add a header to a log file using log4j

2009-08-21 Thread Alexander
Maybe this would give you some ideas http://marc2.theaimsgroup.com/?l=log4j-user&m=102804129921699&w=2 2009/8/21 Gurdeep Singh > Hi All, > > My log file needs a have a single header followed by entries. Is it > possible using log4j. > > -Gurdeep > -- Regards, Alexander

Re: Entering and Exiting Log Methods I.E. java.util.logging.Logger

2009-08-20 Thread Alexander
log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Regards, Alexander

Re: Log4J Performance

2009-08-18 Thread Alexander
ge, would Log4J be > suitable for such an application or there are performance issues. > > Thanks, > > Gurdeep > -- Regards, Alexander

Re: Changing log level without restarting app server

2009-08-13 Thread Alexander
- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Regards, Alexander

Re: Wanted: Help finding documentation

2009-08-05 Thread Alexander
ete-Log4j-Manual-Ceki-Gulcu/dp/2970036908> Regards, Alexander 2009/8/5 siegfried > Can someone kindly provide me with the URL that explains how I can enhance > my program below to > > 1. Turn on and off various levels of logging (eg: turn on info logging > but turn o

Exception in getAllFonts

2008-02-19 Thread Orlovsky Alexander
Hello! I downloaded "Unix/Dos Standalone" Chainsaw distributive from this site. At next step i unpack it in my's "Linux Fedora" and said: $ export DISPLAY=localhost:0.0 # because I'm using Cygwin X Server(WinXP) $ ./chainsaw.sh Result is: Exception in thread "main" java.lang.UnsupportedOperationEx

Tomcat WEBAPP: Ask for Knowledge: Catch all an APP writes to stdout (catalina.out)

2005-12-02 Thread Alexander Rohde
utput from tomcat itself. How catch that output, that is written to stdout, and put it into an own file? Are there any ideas around? Thank you, Alexander Rohde --- Alexander Rohde Multimedia Forschungs- und Entwicklungslabor 'Werk-Stadt

RE: Logging from Stream

2004-10-21 Thread Alexander,D
Ignore this. I've got it working now. Cheers, Derek > -Original Message- > From: Alexander,D > Sent: 21 October 2004 11:17 > To: Log4J Users List > Subject: Logging from Stream > > > Hi, > > I want to direct the debug info from they JavaMail librar

Logging from Stream

2004-10-21 Thread Alexander,D
Hi, I want to direct the debug info from they JavaMail library to log4j. By default it goes to System.out but there is a method to set an alternative PrintStream for this debug output. What I'm wondering is how to implement a PrintStream that can write each line written to it to one of the log

RE: FW: Logging in Tomcat from classes in CATALINA_BASE/shared/lib

2004-05-26 Thread Alexander,D
ThreadLocal. > This approach assumes that a > HttpSessionListener or a > filter places the > correct repository before serving requests > > I'd start with 1) and see if it solves the problem. > Interesting problem btw... > > At 01:17 PM 5/24/2004, Alexander,D w

RE: FW: Logging in Tomcat from classes in CATALINA_BASE/shared/lib

2004-05-26 Thread Alexander,D
> Subject: Re: FW: Logging in Tomcat from classes in > CATALINA_BASE/shared/lib > > > Quoting "Alexander,D" <[EMAIL PROTECTED]>: > > > Hi, > > > > Hope someone can advise. > > > > We have an unconventional deployment of our application

FW: Logging in Tomcat from classes in CATALINA_BASE/shared/lib

2004-05-24 Thread Alexander,D
Hi, Hope someone can advise. We have an unconventional deployment of our applications in Tomcat (4.1.x) where, rather than deploying classes under each webapp, they have been deployed together in a jar under CATALINA_BASE/shared/lib alongside other library jars. We do this to ease deployment a

Logging in Tomcat from classes in CATALINA_BASE/shared/lib

2004-05-24 Thread Alexander,D
Hi, Hope someone can advise. We have an unconventional deployment of our applications in Tomcat (4.1.x) where, rather than deploying classes under each webapp, they have been deployed together in a jar under CATALINA_BASE/shared/lib alongside other library jars. We do this to ease deployment a

formatting stack trace (with SyslogAppender)

2004-01-15 Thread Alexander,D
Hi, I'm quite new to log4j but have looked through the web pages and 'The complete log4j manual' and can't see any solution mentioned to the problem I'm facing so wondered if anyone else has had a similar experience and could perhaps advise as to how they worked around it. I'll be using the S