Re: Extending Appenders

2014-08-30 Thread Matt Sicker
gt;>>>>> attach a patch with the changes you have in mind. > >>>>>> > >>>>>> > >>>>>> On Sat, Aug 30, 2014 at 4:07 AM, Michael Schall < > mike.sch...@gmail.com > >>>>> > > >>>>>> wrote: > >>>>>> > >>>>>>> I'm upgrading an application to use Log4j2. With our existing > >>>>>>> implementation we have created a new appender which extends the > >>>>>>> SMTPAppender. I see the SMTPAppender is a final class now which > >>>>> prevents > >>>>>>> me from extending it. I was wondering what the reason for this > is? Do > >>>>>> we > >>>>>>> really need to re-implement the the entire SMTPAppender > (properties, > >>>>>>> buffering, ...) to extend the appender? > >>>>>>> > >>>>>>> Thanks for your time. > >>>>>>> > >>>>>>> Mike > >> > >> - > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Custom appender : PluginElement

2014-08-30 Thread Matt Sicker
Good to hear it! Is there anything about the documentation you found unclear in that regard? On 30 August 2014 01:44, lb wrote: > Yes that was the problem, I forgot to mark it as plugin. Now it works, > thank you > > On Friday, August 29, 2014, Matt Sicker wro

Re: Custom appender : PluginElement

2014-08-31 Thread Matt Sicker
y > need a specific configuration object (AppenderA.Configuration.class != > AppenderB.Configuration.class). I would love to use Configuration for both > appenders but I can't as the name is set by @Plugin and @PluginElement, am > I wrong? > > > > > > >

Re: Log4j2 with SL4J Adapter

2014-09-02 Thread Matt Sicker
t i wasnt sure if its needed or not.. > >> > > >>> > >> > > >>> So since you mentioned that things should be working without the > >> > > >>> configuration i removed it and ran but it still doesnt log the > >> &g

Re: Log4j2's SimpleLogger Implementation Issue for var args method's

2014-09-02 Thread Matt Sicker
Oracle JDK version 1.7 > >>> 2. Log4j2 API - 2.0.1 > >>> > >>> > >>> To reproduce following java class can be used : > >>> > >>> TestError.java > >>> ---- > >>> > >>> import org.apache.logging.log4j.LogManager; > >>> import org.apache.logging.log4j.Logger; > >>> > >>> > >>> > >>> public class TestError { > >>> > >>> private static final Logger logger = LogManager.getLogger("TestError"); > >>> /** > >>> * @param args > >>> */ > >>> public static void main(String[] args) { > >>> Object[] arr = null; > >>> logger.error("Hello World {} in {} " , new Object[0]); > >>> > >>> } > >>> > >>> } > >>> > >>> Jars in Classpath > >>> -- > >>> Log4j2 API - 2.0.1 > >>> > >>> > >>> Regards, > >>> -Yogesh > >> > >> > >> - > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >> > >> > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: org.apache.loggin.log4j.core.pattern.DatePatternConverter blocking

2014-09-03 Thread Matt Sicker
; > > > > > --------- > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Log4j 2.x Web app initialization logging

2014-09-04 Thread Matt Sicker
t; > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Log4j 2.x Web app initialization logging

2014-09-04 Thread Matt Sicker
<http://www.manning.com/tahchiev/> > > Spring Batch in Action <http://www.manning.com/templier/> > > Blog: http://garygregory.wordpress.com > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > > > > > > -- > Mikael Ståldal > Chief Software Architect > *Appear* > Phone: +46 8 545 91 572 > Email: mikael.stal...@appearnetworks.com > -- Matt Sicker

Re: log4j2 Slow Starup

2014-09-05 Thread Matt Sicker
taking more than 20 seconds. > > java stack trace is showing PluginManager.collectPlugins code. > > Is there any way to reduce the startup time? > Is it possible to disable the plugin find process? > > > Thanks > Kumar > -- Matt Sicker

Re: Custom appender : PluginElement

2014-09-06 Thread Matt Sicker
fig" > 2014-09-06 14:22:26,344 ERROR BinaryIndexedChronicle contains an invalid > element or attribute "chronicleConfig" > 2014-09-06 14:22:26,348 ERROR TextIndexedChronicle contains an invalid > element or attribute "chronicleConfig" > > > On Sun, Aug 31, 2

Re: [survey] What version of Java do you use?

2014-09-08 Thread Matt Sicker
in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Logging requirement for PCI (payment card industry)

2014-09-08 Thread Matt Sicker
anks in advance, > > Christian > > - > > > > Software Integration Specialist > > > > Apache Member > > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer > > Apache Incubator PMC Member > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Logging requirement for PCI (payment card industry)

2014-09-08 Thread Matt Sicker
gain, that just might be due to the fact that in order to get any sort of plugin system working in Java (without something like OSGi), you need ClassLoaders, and the getClassLoader runtime permission can really open up a can of worms security-wise. On 8 September 2014 18:41, Matt Sicker wro

Re: Logging requirement for PCI (payment card industry)

2014-09-09 Thread Matt Sicker
ser to hide their actions. > > > > The PCI auditor told us, "it's enoght" if the application logs when it's > > started and when it's stopped. > > > > [1] https://www.pcisecuritystandards.org/documents/PCI_DSS_v3.pdf > > > > Thanks in advance, > > Christian > > - > > > > Software Integration Specialist > > > > Apache Member > > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer > > Apache Incubator PMC Member > > > -- Matt Sicker

Re: Issue with configuration status and Rolling Files

2014-10-06 Thread Matt Sicker
lication and our container is > > tomcat 7. > > > > 2. I am using slf4j adapter as interface in my application to > access > > log4j2 > > > > > > > > Do please let me know if you need any further details to help me out. > > > > > > > > > > > > Thanks, > > > > Sujatha > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > -- Matt Sicker

Re: Issue with configuration status and Rolling Files

2014-10-07 Thread Matt Sicker
9 ruleAnalytics.log > -rw-rw-r-- 1 wcuser wcuser 963 Oct 7 13:50 APIRequestResponse.log > -rw-rw-r-- 1 wcuser wcuser 0 Oct 7 13:52 Analytics.log > > Am I doing something wrong in the configuration?? > > -Original Message- > From: Matt Sicker [mailto:boa...@gmai

Re: how to detect logger is unable to write to file?

2015-10-29 Thread Matt Sicker
ser-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
ial information. > It is intended only for the person to whom it is addressed. If you are not > that person, you should not use this message. We request that you notify us > by replying to this message, and then delete all copies including any > contained in your reply. Thank you. > -- Matt Sicker

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
> Normal, Medium, Full. > > -Original Message- > From: Matt Sicker [mailto:boa...@gmail.com] > Sent: Monday, November 09, 2015 7:54 PM > To: Log4J Users List > Subject: Re: Change log level on the fly? > > Loggers can be reconfigured through JMX. > > On 9 November 2015

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
And by JMX, I meant the MBean class (not jConsole): http://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/jmx/LoggerConfigAdminMBean.html On 9 November 2015 at 22:07, Matt Sicker wrote: > You can find the Logger from LogManager, cast

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
r’s level). > > Ralph > > > On Nov 9, 2015, at 9:07 PM, Matt Sicker wrote: > > > > You can find the Logger from LogManager, cast to > > org.apache.logging.log4j.core.Logger, and use setLevel, though I bet > > there's a better way to do this via configuration f

Re: layout optional?

2015-11-10 Thread Matt Sicker
t? If that's the case then if we > > want our event to have a specific format by default then I guess we need > to > > code that in toString()/ToString(), correct? > > > > Thanks, > > Nick > > > -- Matt Sicker

Re: layout optional?

2015-11-10 Thread Matt Sicker
So it depends on how deep you configure something then. On 10 November 2015 at 12:16, Gary Gregory wrote: > But sometimes it's a little more ;-) > > See > org.apache.logging.log4j.core.config.DefaultConfiguration.DEFAULT_PATTERN > > Gary > > On Tue, Nov 10, 2015 a

Re: Log4j2 - HTML emails pattern

2015-11-10 Thread Matt Sicker
ith a custom pattern: > > > > > "PatternLayout" : { "pattern" : "%m" } > > > > > > > > > > But the email is sent as text. > > > > > > > > > > I saw that there is a HTMLLayout but it doesn't seem to accept a > > > pattern? > > > > > > > > > > How can I produce a custom HTML message? > > > > > > > > > > Thanks! > > > > > Ben > > > > > > > > > > > > > > > -- > > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > > Java Persistence with Hibernate, Second Edition > > <http://www.manning.com/bauer3/> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > > Spring Batch in Action <http://www.manning.com/templier/> > > Blog: http://garygregory.wordpress.com > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > > > -- Matt Sicker

Does anyone use Log4j2 with Logstash?

2015-11-18 Thread Matt Sicker
Any experience with this? I was thinking of using Flume and the Flume appender to route all my log messages to an ELK stack, but I was wondering if there were other ways of doing this. -- Matt Sicker

Re: Does anyone use Log4j2 with Logstash?

2015-11-19 Thread Matt Sicker
; > > > > On Wed, Nov 18, 2015 at 10:56 PM, David KOCH wrote: > > > >> We use log4j2's SyslogAppender and a logstash UDP input source, works ok > >> for us, no need to add Flume to the mix. > >> > >> /David > >> > >> On 18

Re: Does anyone use Log4j2 with Logstash?

2015-11-19 Thread Matt Sicker
at 10:07 AM, Gary Gregory > wrote: > > > > Amazon has a pretty rich ecosystem of stuff. Should this be in a new > > log4j-amazon module or in the core module? Does it fit in no-sql? > > > > Gary > > On Nov 19, 2015 6:29 AM, "Matt Sicker" w

Re: [ANNOUNCEMENT] Welcome Ralph Goers as the new Apache Logging Chair

2015-11-20 Thread Matt Sicker
p://www.grobmeier.de/hey-i-became-a-vice-president-07072012.html > > Or the official docs: > http://www.apache.org/foundation/how-it-works.html > > - > To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-dev-h...@logging.apache.org > > -- Matt Sicker

Re: Does anyone use Log4j2 with Logstash?

2015-11-23 Thread Matt Sicker
ElasticSearch has a REST API for adding data which seems to be a rather inefficient way to implement an appender. On 19 November 2015 at 13:36, Matt Sicker wrote: > I just spoke with my friend who's pretty familiar with both Solr and > ElasticSearch, and he points out that Solr usage

Re: Does anyone use Log4j2 with Logstash?

2015-11-24 Thread Matt Sicker
; reason > > it is part of the Elastic family. > > > > /David > > > > On 23 November 2015 at 18:32, Matt Sicker wrote: > > > > > ElasticSearch has a REST API for adding data which seems to be a rather > > > inefficient way to implement an append

Re: Does anyone use Log4j2 with Logstash?

2015-11-25 Thread Matt Sicker
gers, it might work as well. > > I would recommend to always wrap appenders which make synchronous networks > requests with AsyncAppender or async logger. > > On Tue, Nov 24, 2015 at 7:39 PM, Matt Sicker wrote: > > > Would using an async logger combine well with an HTTP ap

Re: status appender?

2015-12-14 Thread Matt Sicker
to > be controlled separately from the status logger and ideally it would be > nice to just piggy back on the status logger. We could have this code > write to its private logger and the status logger for DEBUG events, but > then we get into the routing issue I mentioned above. So I'm wondering, is > there such a thing as a StatusAppender? > > Thanks, > Nick > -- Matt Sicker

Re: still: Memoryleak - org.apache.log4j.helpers.ThreadLocalMap

2015-12-17 Thread Matt Sicker
gt; > > > > > > > I'm wondering, who will remove the ThreadLocalMap on the spawned > child > > > > threads? Since MDC.remove() will do this only on my parent thread > > > > manually kicked by the filter. > > > > > > > > Or, maybe I'm completely wrong with this :). > > > > > > > > Thanks > > > > Veit > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > > Java Persistence with Hibernate, Second Edition > > <http://www.manning.com/bauer3/> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > > Spring Batch in Action <http://www.manning.com/templier/> > > Blog: http://garygregory.wordpress.com > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > > > > > > > > > > > -- > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > Java Persistence with Hibernate, Second Edition > <http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Appender's append() method

2016-01-14 Thread Matt Sicker
n exception in the catch block instead of > > >>>> checking the state of the ignoreExceptions flag? > > >>>>> > > >>>>> Thanks, > > >>>>> Nick > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>> > - > > >>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > > >>>> > > >>>> > > >>> > > >>> > > >>> -- > > >>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > > >>> Java Persistence with Hibernate, Second Edition > > >>> <http://www.manning.com/bauer3/> > > >>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > > >>> Spring Batch in Action <http://www.manning.com/templier/> > > >>> Blog: http://garygregory.wordpress.com > > >>> Home: http://garygregory.com/ > > >>> Tweet! http://twitter.com/GaryGregory > > >> > > >> > > >> > > >> - > > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > > >> > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > -- Matt Sicker

Re: Getter method for retrieving the attributes of an appender from the LoggerContext

2016-01-26 Thread Matt Sicker
t; > > > For example something like this: > > > > > > LoggerContext ctx = Configurator.initialize( builder.build() ); > > > > > > String hostname = > > > > > > ctx.getConfiguration()..getAppenders().get("syslogAppender").getAttribute("host"); > > > > > > Thank you all very much for your help. > > > > > > Apostolis > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Getter method for retrieving the attributes of an appender from the LoggerContext

2016-01-27 Thread Matt Sicker
t; > >>>>> that > > >>>>>> all concrete Appenders need to be modified as well. So, yes, I can > > >> give > > >>>>> it > > >>>>>> a try to implement it for all the Appenders. One other simple way &g

Re: Getter method for retrieving the attributes of an appender from the LoggerContext

2016-01-27 Thread Matt Sicker
, Mikael Ståldal wrote: > I don't quite understand what you mean. > > On Wed, Jan 27, 2016 at 4:02 PM, Matt Sicker wrote: > > > That sounds a little fragile as some people either create or modify their > > creation directly from the plugin factories. > > >

Re: Standard Out stops working

2016-01-29 Thread Matt Sicker
---- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > -- Matt Sicker

Where is it documented that you can supply a Throwable in a varargs log message?

2016-01-29 Thread Matt Sicker
Like when you do logger.debug("{}", foo, ex). I know it's supported, but I can't find anywhere that this is mentioned. -- Matt Sicker

Re: Where is it documented that you can supply a Throwable in a varargs log message?

2016-01-29 Thread Matt Sicker
ate, args, and also an > exception. > > This bites me from time to time. > > What I need is an API that looks like this: > > Logger.debug(ex, "blah {} {}", arg1, arg2): > > Gary > On Jan 29, 2016 1:28 PM, "Matt Sicker" wrote: > > > Like when

Re: Where is it documented that you can supply a Throwable in a varargs log message?

2016-01-29 Thread Matt Sicker
works when you call an API that is typed with Throwable. > > > > G > >> On Jan 29, 2016 2:11 PM, "Matt Sicker" wrote: > >> > >> Why can't it log the stack trace as well? Can't you specify > >> %throwable{full} in the pattern? &

Re: Where is it documented that you can supply a Throwable in a varargs log message?

2016-01-29 Thread Matt Sicker
29, 2016, at 4:57 PM, Matt Sicker wrote: > > > > Remko, that's exactly the method I was thinking of. It almost seems to > be a > > hidden feature. I was arguing with a co-worker earlier today about it and > > he doesn't believe me that you can do this, partly bec

Re: Custom appender not identified in OSGi environment

2016-02-05 Thread Matt Sicker
th patches > from > >>>>>> time to > >>>>>>>>> time. Perhaps one of them can help out? > >>>>>>>>> > >>>>>>>>> Ralph > >>>>>>>>> > >>>>>>>>>>> On Feb 3, 2016, at 6:07 AM, Nipuni Piyabasi Perera < > >>>>>>>>>> nipuni880...@gmail.com> wrote: > >>>>>>>>>> > >>>>>>>>>> Hi, > >>>>>>>>>> > >>>>>>>>>> I have written a custom appender extending the log4j2 > >>>>>> AbstractAppender. > >>>>>>>>> But > >>>>>>>>>> I am getting a runtime error[1]. I have added the plugin > >>>>>> annotation[2] > >>>>>>>>> as > >>>>>>>>>> per the manual and the custom appender class contains factory > >> method > >>>>>>>>>> createAppender() as well. I also have added the package name to > >>>>>>>>>> configuration element. > >>>>>>>>>> What am I missing here? Appreciate any input on this. > >>>>>>>>>> > >>>>>>>>>> I have my log4j2.xml file as below: > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>... > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> port=""> > >>>>>>>>>> <- > >>>>>>>>>> New Appender > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>... > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> >>>>>> additivity="true"> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> [1] ERROR Appenders contains an invalid element or attribute > >>>>>>>>> "HTTPSocket" > >>>>>>>>>> [2] @Plugin(name = "HTTPSocket", category = "Core", elementType > = > >>>>>>>>> "appender", > >>>>>>>>>> printObject = true) > >>>>>>>>>> > >>>>>>>>>> Thanks, > >>>>>>>>>> Nipuni > >>>>>>>>>> > >>>>>>>>>> -- > >>>>>>>>>> Nipuni Perera > >>>>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com > >>>>>>>>>> Email: nip...@wso2.com > >>>>>>>>>> Git hub profile: https://github.com/nipuni > >>>>>>>>>> Blog : http://nipunipererablog.blogspot.com/ > >>>>>>>>>> Mobile: +94 (71) 5626680 > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >> - > >>>>>>>>> To unsubscribe, e-mail: > log4j-user-unsubscr...@logging.apache.org > >>>>>>>>> For additional commands, e-mail: > >> log4j-user-h...@logging.apache.org > >>>>>>>> > >>>>>>>> > >>>>>>>> -- > >>>>>>>> Nipuni Perera > >>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com > >>>>>>>> Email: nip...@wso2.com > >>>>>>>> Git hub profile: https://github.com/nipuni > >>>>>>>> Blog : http://nipunipererablog.blogspot.com/ > >>>>>>>> Mobile: +94 (71) 5626680 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> Nipuni Perera > >>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com > >>>>>>> Email: nip...@wso2.com > >>>>>>> Git hub profile: https://github.com/nipuni > >>>>>>> Blog : http://nipunipererablog.blogspot.com/ > >>>>>>> Mobile: +94 (71) 5626680 > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> Nipuni Perera > >>>>> Software Engineer; WSO2 Inc.; http://wso2.com > >>>>> Email: nip...@wso2.com > >>>>> Git hub profile: https://github.com/nipuni > >>>>> Blog : http://nipunipererablog.blogspot.com/ > >>>>> Mobile: +94 (71) 5626680 > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Nipuni Perera > >>>> Software Engineer; WSO2 Inc.; http://wso2.com > >>>> Email: nip...@wso2.com > >>>> Git hub profile: https://github.com/nipuni > >>>> Blog : http://nipunipererablog.blogspot.com/ > >>>> Mobile: +94 (71) 5626680 > >>> > >> > >> > >> > >> - > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >> > >> > > > > > > -- > > Nipuni Perera > > Software Engineer; WSO2 Inc.; http://wso2.com > > Email: nip...@wso2.com > > Git hub profile: https://github.com/nipuni > > Blog : http://nipunipererablog.blogspot.com/ > > Mobile: +94 (71) 5626680 > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Custom appender not identified in OSGi environment

2016-02-05 Thread Matt Sicker
> [1]. (This way new appender bundle becomes a fragment of pax-logging-log4j2 > and visible to the class loader.) > > Sorry for the noise. Thanks all for the replies. > > [1] org.ops4j.pax.logging.pax-logging-log4j2 > > Thanks, > Nipuni > > On Fri, Feb 5, 2016 at 9:24

Re: Errors with FlumeAppender

2016-02-08 Thread Matt Sicker
channels = memoryChannel > > > # Each sink's type must be defined > > agent.sinks.loggerSink.type = logger > > #Specify the channel the sink should use > > agent.sinks.loggerSink.channel = memoryChannel > > # Each channel's type is defined. > > agent.channels.memoryChannel.type = memory > > # Other config values specific to each type of channel(sink or source) > > # can be defined as well > > # In this case, it specifies the capacity of the memory channel > > agent.channels.memoryChannel.capacity = 100 > -- Matt Sicker

Re: Errors with FlumeAppender

2016-02-08 Thread Matt Sicker
No wait, that's already filtered out by FlumeAppender. On 8 February 2016 at 19:18, Matt Sicker wrote: > Are flume's logging events being logged to flume? That should cause the > recursion error. > > On 8 February 2016 at 19:00, Tara Czutno > wrote: > >> I am

Re: Fastest Log4j2 configuration for multiple java process / multiple machine production environment

2016-02-10 Thread Matt Sicker
=AsyncContext@17f052a3] at URI > >>>>>>>>> /opt/twc/ecp/log4j2.server.xml > >>>>>>>>>> (org.apache.logging.log4j.core.async.AsyncLoggerContext@6bf0219d > ) > >>>>> wi

Re: Fastest Log4j2 configuration for multiple java process / multiple machine production environment

2016-02-10 Thread Matt Sicker
; > > >>>>>>>>>> 2017-02-05 18:17:41,585 main DEBUG Registering MBean > > > >>>>>>>>>> org

Re: Configuration for custom Filter

2016-02-22 Thread Matt Sicker
hat configuration do I need in my log4j2.xml to use a custom Filter? > > Do I need to "register" the filter with log4j2 somehow to use it? > > Tara > -- Matt Sicker

Re: Zero conf is not showing logs even it's connected

2016-03-04 Thread Matt Sicker
> > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> >> > > >> > *"${sys:user.home}/logs/webapp.log"* > > > > >> > > > > > >> > filePattern= > > > > >> > *"${sys:user.home}/logs/webapp-%d{-MM-dd}-%i.log"* > > > > >> > > > > > >> > bufferedIO=*"false"* advertiseURI= > > > > >> > *"file:///C://users/bilguuna/logs/webapp.log"* > > > > >> > > > > > >> > advertise=*"true"*> > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > MB"* > > > /> > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > /> > > > > >> > > > > > >> > /> > > > > >> > > > > > >> > > /> > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > On the ZeroConf tab, I see 2 receivers which are configuration > and > > > > >> LogFile > > > > >> > that both are connected. When I double click any of them, it > just > > > > >> > changes > > > > >> > Connection status but not showing any logs. What should I do? > > > > >> > > > > > >> > > > > > >> > Update: I realized that in zeroconf folder of the chainsaw-log > > tab, > > > it > > > > >> said > > > > >> > Remote host [10.20.91.20] refused connection. Is that might be > the > > > > >> reason? > > > > >> > > > > > >> > > > > > >> > Thank you > > > > >> > > > > > >> > > > > >> > > - > > > > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > >> For additional commands, e-mail: > log4j-user-h...@logging.apache.org > > > > >> > > > > >> > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > -- Matt Sicker

Re: Log4j2 Backwards Compatibility

2016-03-07 Thread Matt Sicker
guration mode, even the 1.X adapter module looks as if it is intended > as only a wrapper for the package name refactoring. > > Is support for the legacy configuration files currently possible using the > latest release of Log4j2.x ? > > Thanks, > Daniel > -- Matt Sicker

Re: controlling the status logger output?

2016-03-07 Thread Matt Sicker
nder for the status logger, correct? Any suggestions for limiting > the size of the log generated by the status logger when stdout has been > redirected to a file? > > Thanks, > Nick > -- Matt Sicker

Re: Log4j2 Backwards Compatibility

2016-03-07 Thread Matt Sicker
names aren’t specified any more, and the way > parameters are specified is different. > > Ralph > > > On Mar 7, 2016, at 8:52 AM, Matt Sicker wrote: > > > > There is no current support for the previous format, but the docs do give > > examples on how

Re: Hook into the RollingFileManager#write / Get notice about written bytes

2016-03-09 Thread Matt Sicker
a solution for this > problem? And is there a specific reason that everything is final? :( > > > > Thank you in advance and best regards, > > Christian > > --------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Hook into the RollingFileManager#write / Get notice about written bytes

2016-03-09 Thread Matt Sicker
ts is a way to examine the throughput of log4j? > > Cheers, > Paul > > On Wed, Mar 9, 2016 at 11:46 AM, Gary Gregory > wrote: > > > Maybe we need some (async?) notification where a call site could > registered > > a listener of some kind... > > > > G

Re: how to disable recursive check for appender in log4j2.5

2016-04-07 Thread Matt Sicker
j2.x because of recursive call check for appender, is it > possible to disable it? Or at least to disable recursive call check for > specific appender. > > > > Best regards. > > -- Matt Sicker

Re: Separate appender for each application in same Tomcat

2016-04-14 Thread Matt Sicker
ar packages and share many common >>>>> libraries developed in-house, so using package name to separate logs >>>>> will >>>>> not be what we want. >>>>> >>>>> What is the best solution/practice to this kind of problem? >>>>> >>>>> (using log4j 2.5) >>>>> >>>>> Thanks >>>>> >>>>> >> >> - >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >> For additional commands, e-mail: log4j-user-h...@logging.apache.org >> >> > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Dynamically creating loggers

2016-04-15 Thread Matt Sicker
; - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

What pattern or feature would you use to pass along the MDC between worker threads?

2016-04-27 Thread Matt Sicker
helps. -- Matt Sicker

Re: uncaught exception with log4j2

2016-05-03 Thread Matt Sicker
tions. Can > > anyone point me in the right direction. > > > > > > > > > vpyang > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Flume appender: Dependency problem when building with maven assembly plugin?

2016-05-04 Thread Matt Sicker
> 2.5 > > > org.apache.logging.log4j > log4j-api > 2.5 > > > org.apache.logging.log4j > *log4j-flume-ng* > 2.5 > > > > Another hint: When I start the application from eclipse, it seems to work > totally fine (at least I don't get the error from above). > > So what I am doing wrong here? Has anyone some advice for me? Thanks in > advance. > > Julian > -- Matt Sicker

Re: Flume appender: Dependency problem when building with maven assembly plugin?

2016-05-11 Thread Matt Sicker
> following > >>> dependency (including the necessary log4j dependencies): > >>> > >>> > >>> > >>> ... > >>> > >>> > >>> org.apache.logging.log4j > >>> log4j-core > >>> 2.5 > >>> > >>> > >>> org.apache.logging.log4j > >>> log4j-api > >>> 2.5 > >>> > >>> > >>> org.apache.logging.log4j > >>> *log4j-flume-ng* > >>> 2.5 > >>> > >>> > >>> > >>> Another hint: When I start the application from eclipse, it seems to > work > >>> totally fine (at least I don't get the error from above). > >>> > >>> So what I am doing wrong here? Has anyone some advice for me? Thanks in > >>> advance. > >>> > >>> Julian > >> > >> > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: BOM dependency with gradle

2016-06-02 Thread Matt Sicker
ED > > >> ... > > >> > > >> What's the right syntax, if it's even possible? > > >> > > >> Thanks, > > >> > > >> Greg > > >> > > >>

Re: BOM dependency with gradle

2016-06-02 Thread Matt Sicker
quot;$log4jVersion" > compile group: 'org.apache.logging.log4j', name: 'log4j-core', > version: "$log4jVersion" > > which seems simpler and more obvious, tbh. > > Greg > > On 2 June 2016 at 17:36, Matt Sicker wrote: > > I'm no

Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
The code has a case for the busy spin strategy, but it's not listed on this page: <https://logging.apache.org/log4j/2.x/manual/async.html>. Is this unsupported or should it be added to the docs? -- Matt Sicker

Re: Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
Also, is there a way to specify a custom WaitStrategy, or is that pointless? On 13 June 2016 at 13:24, Matt Sicker wrote: > The code has a case for the busy spin strategy, but it's not listed on > this page: <https://logging.apache.org/log4j/2.x/manual/async.html>. Is >

Re: Override log4j.properties during testing

2016-06-15 Thread Matt Sicker
${runSuite} > > > > > > > > > > > > > > > > > >org.jacoco > > >jacoco-maven-plugin > > >0.7.0.201403182114 > > > > > > > > > > > >prepare-agent > > > > > > > > > > > > > > > > > ${sonar.jacoco.reportPath} > > > > > > > > > > > > > > >org.apache.felix > > >maven-bundle-plugin > > >3.0.1 > > >true > > > > > > > > > > > > ${project.artifactId} > > > > > > ${project.description} > > > > > > *;resolution:=optional > > > > > > > > > > > > > > > > > > > > > > > > > > > But setting log level to ERROR or some other value in log4j.properties > is > > > not making any effect. The actual level is always INFO. I have gone > > through > > > this question > > > < > > > http://stackoverflow.com/questions/4106524/how-to-override-log4j-properties-during-testing > > > > > > and > > > tried modifying my sure-fire plugin configuration but still no luck. > > > > > > > > >org.apache.maven.plugins > > >maven-surefire-plugin > > >2.19.1 > > > > > > > > >${runSuite} > > > > > > > > > > > > file:src/test/resources/log4j-surefire.properties > > > > > > > > > > > > Maven version is as below:- > > > > > > jabongs-MacBook-Pro-4:basecomponent debraj$ mvn -vApache Maven 3.3.9 > > > (bb52d8502b132ec0a5a3f4c09453c07478323dc5; > > > 2015-11-10T22:11:47+05:30)Maven home: > > > /Users/debraj/Downloads/apache-maven-3.3.9Java version: 1.8.0_77, > > > vendor: Oracle CorporationJava home: > > > > > > /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jreDefault > > > locale: en_US, platform encoding: UTF-8 > > > OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac" > > > > > > The issue is there only in test config and during the test execution. > If > > > the log level is changed in src/main/resources/log4j.properties then > > during > > > the main application run the log level messages are fine. > > > > > > Can someone let me know what is going wrong? > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Override log4j.properties during testing

2016-06-15 Thread Matt Sicker
> > I am asking this because right now we are using log4j in a karaf bundle. If > we are moving to log4j2 we also have to configure karaf to use as log4j2. > On Jun 15, 2016 9:50 PM, "Matt Sicker" wrote: > > > That's not the right artifact. Take a look here: <

Re: Multiple instances of log4j2.xml

2016-06-17 Thread Matt Sicker
j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

How exactly are you supposed to use CloseableThreadContext?

2016-06-20 Thread Matt Sicker
quot;, "value")) { ^ RequestIdFilterTest.java:12: error: ';' expected try (CloseableThreadContext.put("key", "value")) { ^ RequestIdFilterTest.java:17: error: reached end of file while parsing } ^ Am I doing something wrong here? -- Matt Sicker

Re: How exactly are you supposed to use CloseableThreadContext?

2016-06-20 Thread Matt Sicker
4j/2.x/manual/thread-context.html > > @Test > public void name() throws Exception { > > try (final CloseableThreadContext.Instance ctc = > CloseableThreadContext.put("key", "value")) { > > } > } > > On 20 June 2016 at 14:57, Matt Sicker wro

Re: Is there an easy/recommended way to initialize Log4j2 so it works properly in a @Startup @Singleton EJB, or in a static EJB class member?

2016-06-20 Thread Matt Sicker
ons > servlet container initialization? > > > Best regards, > Joachim Kanbach > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: "Custom Container" logging

2016-06-20 Thread Matt Sicker
nothing but I can arrange for it to at runtime examine > the thread local and route messages accordingly. > > Suggestions on what approaches to consider that are intended for this type > of use are appreciated. > > > > David A. Lee > d...@calldei.com<mailto:d...@calldei.com> > http://www.xmlsh.org<http://www.xmlsh.org/> > > -- Matt Sicker

Re: how to ensure my hook is invoked before shutdown hook of log4j

2016-06-24 Thread Matt Sicker
way to disable > the log4j's shutdownhook rather than JVM parameter. > > > > Thanks in advance. > > > > Best regards. > > > > ----- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Reloading appender after property value changes

2016-06-27 Thread Matt Sicker
Username" : "${email.smtp.username}", > "smtpPassword" : "${email.smtp.password}" > } > > When I have a updated value for one of those property (for example > ${email.subject} has changed, what's the simplest way to reload the > appender so that it takes that new value? > Do we have to force a full reconfiguration? > > Thanks > Ben > -- Matt Sicker

Re: Disabling Garbage-free not working

2016-07-01 Thread Matt Sicker
-- > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: [ANNOUNCEMENT] Log

2016-07-10 Thread Matt Sicker
.6.2 requires a minimum of Java 7 to build and run. Log4j 2.3 >> was the last release that >> supported Java 6. >> >> Basic compatibility with Log4j 1.x is provided through the log4j-1.2-api >> component, however it does not implement some of the >> very implementation specific classes and methods. The package names and >> Maven groupId have been changed to >> org.apache.logging.log4j to avoid any conflicts with log4j 1.x. >> >> For complete information on Apache Log4j 2, including instructions on how to >> submit bug reports, >> patches, or suggestions for improvement, see the Apache Apache Log4j 2 >> website: >> >> http://logging.apache.org/log4j/2.x/ >> >> > -- Matt Sicker

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-12 Thread Matt Sicker
heduler/Scheduler_%i.debuglog.gz" > >>> name="debug.Scheduler"> > >>> > >>> %d{-MM-dd HH:mm:ss,SSS} %-5p {%C:%M} [%marker] (%t) - %msg%n > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> - > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >> > >> > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Java Servlet request log using log4j2

2016-07-29 Thread Matt Sicker
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Java Servlet request log using log4j2

2016-07-31 Thread Matt Sicker
t would help. > > @Matt > How can I add a jira issue? If there is no active feature request, I can > raise one. > > Regards, > Mohan.P > > On Sat, Jul 30, 2016 at 7:35 AM, Matt Sicker wrote: > > > I thought I made a feature request for this before, but I can't find

Re: Triggering a purge programatically

2016-08-16 Thread Matt Sicker
e new log file on startup, and when the current one reaches > > > 100MB. There is no "max" number of files to keep > > > > > > I've also got, in code, something that adds a DefaultRolloverStrategy > > with > > > the maximum number of files to keep. However, because we already > created > > a > > > new file (appender.log.nn.zip) on startup, we've probably already > > exceeded > > > that number, so I'd like to purge it immediately. > > > > > > I can't see a way to do that - any ideas? > > > > > > Thanks, > > > > > > Greg > > > > > -- Matt Sicker

Re: Disable lookups in log messages

2016-08-18 Thread Matt Sicker
g4j-throws-exception > > > Best regards, > Luca > > > --- > Luca Burgazzoli > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: What happens if I do NOT add the listener and filter in a servlet 2.5 webapp?

2016-09-06 Thread Matt Sicker
container newer than 2.5. I would guess it would cause no harm, but again, > no information means no information. > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Move org.apache.logging.log4j.util.LoaderUtil.isClassAvailable(String) to Core?

2016-09-06 Thread Matt Sicker
ion <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Move org.apache.logging.log4j.util.LoaderUtil.isClassAvailable(String) to Core?

2016-09-06 Thread Matt Sicker
t; > > >> On Tue, Sep 6, 2016 at 6:34 PM, Remko Popma > > wrote: > > >> > > >> Is there a problem that needs solving here? > > >> I know we consider the API module's util package private, but I really > > >> don't like maki

Re: Tried to remove Log4jServletFilter reference to avoid "GC overhead limit exceeded", but still happens

2016-09-09 Thread Matt Sicker
ted my service. However, > after a while I saw this same error again. What might be happening here? > > ----- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Logger Wrapper + Trace API = Issues

2016-09-10 Thread Matt Sicker
> Thanks in advance, > Juan > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Logger Wrapper + Trace API = Issues

2016-09-10 Thread Matt Sicker
I should note that you might want to use ExtendedLoggerWrapper in this scenario as the methods are protected otherwise that I just mentioned. On 10 September 2016 at 14:03, Matt Sicker wrote: > When you make a custom Logger wrapper, you need to use the logMessage() > methods that inclu

Re: Logger Wrapper + Trace API = Issues

2016-09-10 Thread Matt Sicker
n the logMessage call. I seem to recall there is an > even easier way but it escapes me and I don’t see it documented on the web > site. > > Ralph > > > On Sep 10, 2016, at 12:06 PM, Matt Sicker wrote: > > > > I should note that you might want to use ExtendedLogg

Re: approach for defining loggers

2016-10-17 Thread Matt Sicker
r new event at the custom level. However, > someone > > > > > suggested that we could also create a separate logger for this > event. > > > My > > > > > thinking is that while we don't ever want to turn off logging of > this > > > > > event, loggers represent "event sources", e.g the code raising the > > > events > > > > > and thus having multiple different pieces of code use the same > logger > > > > > wouldn't allow you to turn on/off logging from those different > > > sections of > > > > > code independently. I think the current configuration includes all > > the > > > > > loggers. Normally I would expect there to be many, on the order of > > > 10's or > > > > > 100's, loggers within an application. However, in the case I was > > given > > > > > there were only a handful because I think this handful is shared. > So > > > as I > > > > > mentioned, this doesn't sound like an ideal design as you have less > > > > > granularity on what you can turn on/off. > > > > > >>>>>> > > > > > >>>>>> You have a few options. Using a CustomLevel would not be the > > > option > > > > > I would choose. Creating a custom Logger will certainly work and > > makes > > > > > routing the message to the appropriate appender rather easy. > Another > > > > > approach is to use Markers. Markers are somewhat hierarchical so > you > > > can > > > > > use them for a variety of purposes. If you look at how Log4j > handles > > > event > > > > > logging it actually does both - it specifies EventLogger as the > name > > > of the > > > > > logger to use and it uses Markers to identify the kind of event. > > > > > >>>>>> > > > > > >>>>>> A third option is to use the MDC or Logger properties. If > you > > do > > > > > that then you can have information included in the actual logging > > event > > > > > that can affect how it is routed. I also built a system that uses > the > > > > > RFC5424 format so that the event could have lots of key/value pairs > > to > > > > > identify the events. > > > > > >>>>>> > > > > > >>>>>> Unfortunately, without knowing more details I don’t know > that > > I > > > can > > > > > give you a better idea on how I would implement it. > > > > > >>>>>> > > > > > >>>>>> Ralph > > > > > >>>>>> > > > > > >>>>>> > > > > > > > - > > > > > >>>>>> To unsubscribe, e-mail: > > > log4j-user-unsubscr...@logging.apache.org > > > > > >>>>>> For additional commands, e-mail: > > > log4j-user-h...@logging.apache.org > > > > > >>>>>> > > > > > >>>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > - > > > > > >>>> To unsubscribe, e-mail: log4j-user-unsubscribe@ > > logging.apache.org > > > > > >>>> For additional commands, e-mail: > > > log4j-user-h...@logging.apache.org > > > > > >>>> > > > > > >>> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > > For additional commands, e-mail: log4j-user-help@logging. > apache.org > > > > > > > > > > > > > > > > > > > > > > -- > > > > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > > > > Java Persistence with Hibernate, Second Edition > > > > <http://www.manning.com/bauer3/> > > > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > > > > Spring Batch in Action <http://www.manning.com/templier/> > > > > Blog: http://garygregory.wordpress.com > > [https://s0.wp.com/i/blank.jpg]<http://garygregory.wordpress.com/> > > > > Gary Gregory<http://garygregory.wordpress.com/> > > garygregory.wordpress.com > > Software construction, the web, and other techs > > > > > > > > Home: http://garygregory.com/ > > Gary Gregory<http://garygregory.com/> > > garygregory.com > > Rocket | Seagull . I am a Software Architect for Seagull Software, a > > division of Rocket Software. Rocket Seagull specializes in tools and > > expertise to modernize ... > > > > > > > > Tweet! http://twitter.com/GaryGregory > > Gary Gregory (@GaryGregory) | Twitter<http://twitter.com/GaryGregory> > > twitter.com > > The latest Tweets from Gary Gregory (@GaryGregory). Principal Software > > Engineer, author: Java Persistence Hibernate https://t.co/3F8sYxc0oq, > > JUnit https://t.co/yXU1DqAMDG, Spring Batch https://t.co/XwoMNoBxh7. > > U.S.A. > > > > > > > > > > > > > > > > > > -- > > [image: MagineTV] > > > > *Mikael Ståldal* > > Senior software developer > > > > *Magine TV* > > mikael.stal...@magine.com > > Regeringsgatan 25 | 111 53 Stockholm, Sweden | www.magine.com< > > http://www.magine.com> > > [https://de.magine.com/content/uploads/2016/09/magine_global_social.png > ]< > > http://www.magine.com/> > > > > TV online with Magine TV<http://www.magine.com/> > > www.magine.com > > Watch the TV you love, on any device, anywhere in Germany and Sweden and > > find out more about our global OTT B2B solutions. Get started today. > > > > > > > > Privileged and/or Confidential Information may be contained in this > > message. If you are not the addressee indicated in this message > > (or responsible for delivery of the message to such a person), you may > not > > copy or deliver this message to anyone. In such case, > > you should destroy this message and kindly notify the sender by reply > > email. > > > > > > -- > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > Java Persistence with Hibernate, Second Edition > <https://www.amazon.com/gp/product/1617290459/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459& > linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1617290459> > JUnit in Action, Second Edition > <https://www.amazon.com/gp/product/1935182021/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021& > linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22 > > > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& > linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
gt; > > TV online with Magine TV<http://www.magine.com/> > www.magine.com > Watch the TV you love, on any device, anywhere in Germany and Sweden and > find out more about our global OTT B2B solutions. Get started today. > > > > Privileged and/or Confidential Information may be contained in this > message. If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply > email. > -- Matt Sicker

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
e about our global OTT B2B solutions. Get started today. > > > > > > > > Privileged and/or Confidential Information may be contained in this > > message. If you are not the addressee indicated in this message > > (or responsible for delivery of the message to such a person), you may > not > > copy or deliver this message to anyone. In such case, > > you should destroy this message and kindly notify the sender by reply > > email. > > > > > > -- > [image: MagineTV] > > *Mikael Ståldal* > Senior software developer > > *Magine TV* > mikael.stal...@magine.com > Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com< > http://www.magine.com> > > Privileged and/or Confidential Information may be contained in this > message. If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply > email. > -- Matt Sicker

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
inator. > > > Also not sure about the OOP thing. As far as I can tell, OOP is just a > convenience thing, syntactic sugar. I believe you can do the same in a > procedural language. > > > Thanks, > > Nick > > > From: Matt S

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
his does not extend to other runtimes either, since you won't > use the same libraries. > > On Tue, Oct 18, 2016 at 5:03 PM, Matt Sicker wrote: > > > I'm saying the architecture of the code depends on the language you're > > using. Different design patterns apply

Re: porting log4j2 to .NET

2016-10-19 Thread Matt Sicker
be clear, I'm not talking about > > trying to have a huge percentage, or any at all really, of single source > > and then glue code around it for the various runtimes/OS's you're > targeting. > > >> > > >> > > >> I'm not that familiar w

Re: looking for source

2016-11-04 Thread Matt Sicker
che.org/repos/asf?p=logging-log4j2. > git;a=tree;hb=refs/heads/master > > > But couldn't seem to find what I was looking for. > > > Thanks, > > Nick > -- Matt Sicker

Re: Log4j2 script to generate hash

2016-11-08 Thread Matt Sicker
actually be modified? > > Thanks, > Ben > -- Matt Sicker

Re: Log4j2 script to generate hash

2016-11-10 Thread Matt Sicker
> On Tue, Nov 8, 2016 at 5:18 PM, Remko Popma < > remko.po...@gmail.com > >> > > >> >>>> wrote: > >> >>>>>> > >> >>>>>> All filter methods have a Logger object as the first parameter. > Can >

Re: Building log4j2 configuration files programmatically

2016-11-16 Thread Matt Sicker
1& > linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22 > > > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& > linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Copying appenders and loggers from a confgiruation to a builder

2016-11-17 Thread Matt Sicker
ts constituent parts? Or must I write all this code myself? > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

<    1   2   3   4   5   >