Re: IllegalAccessError on MapLookup.newMap

2016-10-20 Thread Jeremy Heiler
On Thu, Oct 20, 2016 at 1:26 PM, Jeremy Heiler wrote: > > On Thu, Oct 20, 2016 at 12:58 PM, Gary Gregory wrote: > > > > From the stack trace, as you mention, this is the error: > > > > Caused by: java.lang.IllegalAcces

Re: IllegalAccessError on MapLookup.newMap

2016-10-20 Thread Jeremy Heiler
On Thu, Oct 20, 2016 at 12:58 PM, Gary Gregory wrote: > > From the stack trace, as you mention, this is the error: > > Caused by: java.lang.IllegalAccessError: tried to access method > org.apache.logging.log4j.core.lookup.MapLookup.newMap(I)Ljava/util/HashMap; > from class org.apache.logging.log4j

IllegalAccessError on MapLookup.newMap

2016-10-20 Thread Jeremy Heiler
delegate: false --> Parent Classloader: java.net.URLClassLoader@108c4c35 , org.apache.logging.log4j.core.LoggerContext@26745914] with configuration XmlConfiguration[location=/Users/jeremy/acme/foo/target/foo-1.0/WEB-INF/classes/log4j2.xml]... 2016-10-20 11:57:42,260 DEBUG Shutdown hook ena

Question about AsyncAppender vs FailoverAppender

2015-03-09 Thread jeremy
) . What's the benefit of providing errorRef in AsyncAppender rather than simply throwing an exception when you run out of space in your ring buffer and instructing users to utilizing FailoverAppender for failover functionality? Thanks! -jeremy

Layout by Reference?

2015-03-06 Thread jeremy
tion) and copy-pasta configuration can lead to unintended behavior and lost data. Didn't see any tickets on this in jira, would you like me to open one? thanks, -jeremy

Re: Cannot set up my custom layout in 2.0 (worked in rc1)

2014-07-17 Thread Jeremy
+1 I agree packages, or well documented alternative is important for our custom plugins! > On Jul 17, 2014, at 8:40 AM, Remko Popma wrote: > > Matt, can I ask you to raise a Jira for this? It would be good to get the > packages attribute working again for the 2.0.1 release. > > >> On Fri,

RE: Different client's log file?

2006-08-11 Thread Levy, Jeremy
James, That was perfect, I have extended it to log to separate directories based on a MDC value as well as name the file based on the MDC value and append today's date. I have posted the version I am now using at: http://jeremylevy.com/MDCFileAppender.java Jeremy -Original Me

RE: Different client's log file?

2006-08-11 Thread Levy, Jeremy
in or add appenders to the properties file. Is it possible to dynamically change the file name of a log file based on a value? So if someone calls a web service, if I call getLogger or maybe MDC/NDC is there a way to change the name of the log file based a value passed in at runtime? J

Separate appenders based on MDC value

2006-08-09 Thread Levy, Jeremy
I believe this functionality is available in 1.3 can someone point me to an example? j Important Notice to Recipients: It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security

Different Appenders / Layouts based on MDC/NDC or SystemProperty?

2006-07-25 Thread Levy, Jeremy
Can someone tell me how I can using different layouts and appenders depending on a MDC value or SystemProperty? Thanks. J Important Notice to Recipients: It is important that you do not use e-mail to request, authorize or effect the

RE: Programmatically change properties of an appender

2006-07-24 Thread Levy, Jeremy
21, 2006 3:55 PM To: Log4J Users List Subject: Re: Programmatically change properties of an appender I am 90% sure the answer it yes but I don't know exactly which methods you need to call to get the appender. On 7/21/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote: > I would like to chan

Programmatically change properties of an appender

2006-07-21 Thread Levy, Jeremy
I would like to change the subject and the from address of a smtpappender programmatically that is initially configured via a properties file, is this possible? j Important Notice to Recipients: It is important that you do not use e-m

RE: MaxBackupIndex does not work

2006-06-22 Thread Levy, Jeremy
I've had a similar problem... It seems like maxBackupIndex doesn't like any #'s greater then 5 in some circumstances. Try increasing your log size and decreasing the # of indexes. See http://marc.theaimsgroup.com/?l=log4j-user&m=106321621416549&w=2 for more information.

RE: RollingFileAppender not rolling over

2006-06-19 Thread Levy, Jeremy
Looks like this is an issue: http://marc.theaimsgroup.com/?l=log4j-user&m=106321621416549&w=2 Giving that a shot and seeing what happens... -Original Message- From: Levy, Jeremy Sent: Monday, June 19, 2006 2:08 PM To: Log4J Users List Subject: RollingFileAppender not roll

RollingFileAppender not rolling over

2006-06-19 Thread Levy, Jeremy
Below is an excerpt from my log4j.properties file. As I understood it, if I used the RollingFileAppender, when the log file reached the MaxFileSize the log would be renamed with a .1 appended to the end. Only MaxBackupIndex # of copies would be kept. What I am noticing is that when the MaxFile

Default initialization in an application server

2006-05-26 Thread Levy, Jeremy
When using default initialization (not calling property configure or anything) in an application server, and letting log4j find a log4j.properties in the classpath when there are multiple log4j.properies in the classpath, is there a way to see which log4j.properties is being used to initialize? I'

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
James, That would be because JBoss creates a logger for "org.jboss" even though the source is "org.jnp". Figured it out... Take care and thanks for your help, Jeremy On 10/31/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > That looks all correct. I don't

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
Thanks for your continued help. Take care, Jeremy On 10/31/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > Remove the reference to the jnp appender from the root logger. > > > > > > > On 10/31/05, Jeremy Whitlock <[EMAIL PROTECTED]> wrote: &

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
wrong? Take care, Jeremy On 10/31/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > Do something like the following in your log4j.xml: > > > > > > > That will send JNP logs to its own appender and restrict them from > getting to other appenders. I do the s

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
James, I do not have access to the JNP source, as I'm using it only as a dependency, so I don't know if your suggestion is possible. Can you assist me? Take care, Jeremy On 10/31/05, Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > > Hey all, > I'm impressed with the

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
e, atleast not the class stuff. I'll try the applicable suggestion from James. Take care, Jeremy On 10/31/05, Scott Deboy <[EMAIL PROTECTED]> wrote: > > If you can use log4j 1.3, you could use an ExpressionFilter, with the > expression: > > CLASS ~= 'javax.namin

Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
one of these available? If not, how should I go about writing one? I do not see how I can get the class from the LoggingEvent. Take care, Jeremy