Remko Popma | 19 May 10:23 2014
Picon

Re: MemoryMappedFileAppender

(Resending as I was using the wrong From: address and the list software rejected my message.)

> Hi,
> 
> That appender is on my todo list but I haven't had a chance to review it or work on it. If you want to experiment
with it and add your feedback to the Jira ticket that would be great. 
> 
> Please be aware that this issue is not top priority for me now: we are mostly focused on getting 2.0 GA
version released. 
> 
> Best regards,
> Remko
> 
> PS
> If you want to discuss this further, can we do it on the log4j-user list? (You'll need to subscribe or the
list software will reject your message.) That way the other team members are in the loop. Thanks!
> 
> Sent from my iPhone
> 
>> On 2014/05/19, at 16:47, Ajay Kumar Srivastava <ajaykumar.srivastava <at> gmail.com> wrote:
>> 
>> Hi Remkop,
>> 
>> I was trying to MemoryMappedFileAppender by using code available at 
https://issues.apache.org/jira/browse/LOG4J2-431 but I am struggling to use it.
>> 
>> It will be great if you can guide me how can I use shared file in log4j2.
>> 
>> -- 
>> With Regard's
(Continue reading)

Karl Kildén | 16 May 22:32 2014
Picon

Logstash & Log4J2

Hello!

Using the socket appender with log4j1 and logstash simply worked. I can't
get it to work with log4j2.

Any advice on this? Can I make socket appender behave like 1.x?

cheers
James Hutton | 15 May 10:23 2014
Picon

RolloverPolicy and getting all associated files

Hi,
Very happy with the plugin system with log4j2, but I'm working on a custom
rollover policy and am trying to get a list of all associated log files
with the logger I'm rolling over for.  Does anyone know if there's an easy
way/example on how to get a filename filter or the equivalent to filter a
listFiles result set?  I'm looking to do some
processing/archiving/rollingover based upon some relatively arbitrary
criteria but it would be easier if I could just get all the matching files
present instead of iterating with an index being passed into the StrSub or
patternprocessor.  Reason being is that the indexing is unbounded so I
don't want to go from 1 to 4000 in a loop if all the indexes present are
3990->4000, seems like a waste of 3989 iterations.

Thanks,
James Hutton
zafer aydin | 13 May 07:20 2014
Picon

how to set log4j2 xml config location

Hello,
In my Java application, I created an xml configuration file named "log4j2.xml" and put it under "Default
Package". It works as expected.Now I want to change this location but I can't not do it. It seems that in
previous version (log4j) it was possible to set xml config file location by
"DOMConfigurator.configure" but with "log4j2" I cannot find similar function.How can I set the xml
config file location in log4j2?
Thanks.

Zafer AYDIN 		 	   		  
Karl Kildén | 12 May 22:02 2014
Picon

Fwd: Log4J2 - Set log level programmatically

Hi!

Reading this
http://mail-archives.apache.org/mod_mbox/logging-log4j-user/201305.mbox/%3CBAF05689-F627-457D-BD37-59BFCE46F69E <at> nicholaswilliams.net%3E

hints that this is fully possible. This is also a very nice feature for
webapps (especially those running in a cluster) because editing a file on
the server is error prone and sometimes not even possible.

The docs for log4j2 is pretty great overall but I would really like some
info on setting the levels programmatically...

Thanks for log4j, a staple framework I use for every project :-) Time to
upgrade to log4j2 (hence the question)

cheers
Walter_Marvin | 1 May 15:47 2014

More maven build problems for log4j

Dell - Internal Use - Confidential
Could not build clean target for 1.2.17, could not build install target for 2.0. In each case maven
libraries could not be found.

Thanks

wALTER

Evan J | 1 May 02:21 2014
Picon

Web Service Appender

I searched around, but I could not find an off-the-shelf Appender that
sends logs to a web service. Is there any?
Mikael Ståldal | 30 Apr 10:34 2014

Log4j 2 appender for Redis?

Are there any appender for Redis for Log4j 2?

--

-- 
Mikael Ståldal
Chief Software Architect
*Appear*
Phone: +46 8 545 91 572
Email: mikael.staldal <at> appearnetworks.com
Gordon | 30 Apr 00:51 2014
Picon

log4j 1x usage in jsp.

Hi,

I understand the current version of log4j is 2.x, but our company using
log4j 1.x and so my question is specific to version 1.x:

It's said here

http://logging.apache.org/log4j/2.x/manual/webapp.html

that

"You must take particular care when using Log4j or any other logging
framework within a Java EE web application. It's important for logging
resources to be properly cleaned up (database connections closed, files
closed, etc.) when the container shuts down or the web application is
undeployed. Because of the nature of class loaders within web applications,
Log4j resources cannot be cleaned up through normal means. Log4j must be
"started" when the web application deploys and "shut down" when the web
application undeploys. How this works varies depending on whether your
application is a Servlet 3.0 or
newer<http://logging.apache.org/log4j/2.x/manual/webapp.html#Servlet-3.0>or
Servlet
2.5 <http://logging.apache.org/log4j/2.x/manual/webapp.html#Servlet-2.5>web
application."

Questions:
1) How do I start Log4j?  Did I miss something?  Currently I'm using log
for 4 in my jsp / java as follows:

import or.apache.log4j.Logger;
(Continue reading)

Walter_Marvin | 28 Apr 21:30 2014

maven build for source does not work

Dell - Internal Use - Confidential

1)      The pom file has to be updated to allow for maven-site-plugin 3.3 rather than 3.1

2)      The mvm staging step gives a null pointer exception

Apache.log4j-1.2.17

Thanks

Walter
Mikael Ståldal | 25 Apr 16:52 2014

Configure Log4j 2.0 in a Web Application

I am using Log4j 2.0 in a Web Application, which is packaged as a .war
file, and deployed in an application server.

I want to bundle a default Log4j configuration within the .war file, but
make it possible to override it in the application server when deploying,
without tampering with the .war file.

Is that possible with Log4j 2.0? I am currently using Jetty 9.x as
application server, but I would like a solution which can be used in
multiple application servers.

--

-- 
Mikael Ståldal
Chief Software Architect
*Appear*
Phone: +46 8 545 91 572
Email: mikael.staldal <at> appearnetworks.com

Gmane