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
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
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
) . 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
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
+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,
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
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
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
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
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
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
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.
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
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
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'
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
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:
&
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
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
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
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
22 matches
Mail list logo