Re: Logging requirement for PCI (payment card industry)

2014-09-08 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 boa...@gmail.com

Re: Logging requirement for PCI (payment card industry)

2014-09-08 Thread Matt Sicker
, 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 boa...@gmail.com

Re: Logging requirement for PCI (payment card industry)

2014-09-09 Thread Matt Sicker
- Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member -- Matt Sicker boa...@gmail.com

Re: Issue with configuration status and Rolling Files

2014-10-06 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 boa...@gmail.com

Re: Issue with configuration status and Rolling Files

2014-10-07 Thread Matt Sicker
wcuser 0 Oct 7 13:52 Analytics.log Am I doing something wrong in the configuration?? -Original Message- From: Matt Sicker [mailto:boa...@gmail.com] Sent: Monday, October 06, 2014 8:32 PM To: Log4J Users List Subject: Re: Issue with configuration status and Rolling Files Are you

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

2015-10-29 Thread Matt Sicker
gt; To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker <boa...@gmail.com>

Re: layout optional?

2015-11-10 Thread Matt Sicker
; toString()/ToString() on the event object? 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 <boa...@gmail.com>

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
Logging > 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. &

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 <boa...@gmail.com> wrote: > You can find the Logger from LogMana

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
alled (which will > update the logger’s level). > > Ralph > > > On Nov 9, 2015, at 9:07 PM, Matt Sicker <boa...@gmail.com> wrote: > > > > You can find the Logger from LogManager, cast to > > org.apache.logging.log4j.core.Logger, and use setLevel, though I bet > >

Re: Log4j2 - HTML emails pattern

2015-11-10 Thread Matt Sicker
l 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 <boa...@gmail.com>

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
ssage may contain confidential 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 <boa...@gmail.com>

Re: status appender?

2015-12-14 Thread Matt Sicker
arately 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 <boa...@gmail.com>

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

2015-12-17 Thread Matt Sicker
hild > > > > 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 <boa...@gmail.com>

Re: Does anyone use Log4j2 with Logstash?

2015-11-25 Thread Matt Sicker
> I have not tried async loggers, 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 <boa...@gmail.com> wrote: > > > Woul

Re: Does anyone use Log4j2 with Logstash?

2015-11-24 Thread Matt Sicker
a log4j2 appender. Logstash does this well - there is a > reason > > it is part of the Elastic family. > > > > /David > > > > On 23 November 2015 at 18:32, Matt Sicker <boa...@gmail.com> wrote: > > > > > ElasticSearch has a REST API for adding d

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

2015-11-20 Thread Matt Sicker
> http://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 <boa...@gmail.com>

Re: Does anyone use Log4j2 with Logstash?

2015-11-19 Thread Matt Sicker
> On Nov 19, 2015, at 10:07 AM, Gary Gregory <garydgreg...@gmail.com> > 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? > > > > Gar

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 <boa...@gmail.com> wrote: > I just spoke with my friend who's pretty familiar with both Solr and > ElasticSearch, and h

Re: Does anyone use Log4j2 with Logstash?

2015-11-19 Thread Matt Sicker
y itself without either Flume or > > Logstash. > > > > > > On Wed, Nov 18, 2015 at 10:56 PM, David KOCH <dk...@ezakus.com> wrote: > > > >> We use log4j2's SyslogAppender and a logstash UDP input source, works ok > >> for us, no need to add F

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 <boa...@gmail.com>

Re: Override log4j.properties during testing

2016-06-15 Thread Matt Sicker
oco > > >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 <boa...@gmail.com>

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 <boa...@gmail.com> 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/ma

Re: BOM dependency with gradle

2016-06-02 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 > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > -- Matt Sicker <boa...@gmail.com>

Re: BOM dependency with gradle

2016-06-02 Thread Matt Sicker
; "$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 <boa...@gmail.com> wrote: > > I'm not sure if BOMs

Re: Override log4j.properties during testing

2016-06-15 Thread Matt Sicker
e without upgrading to log4j2? > > 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" <boa...@gmail.com> wrote: > > > T

Re: Multiple instances of log4j2.xml

2016-06-17 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 <boa...@gmail.com>

How exactly are you supposed to use CloseableThreadContext?

2016-06-20 Thread Matt Sicker
uot;)) { ^ 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 <boa...@gmail.com>

Re: How exactly are you supposed to use CloseableThreadContext?

2016-06-20 Thread Matt Sicker
://logging.apache.org/log4j/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

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
vlet 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 <boa...@gmail.com>

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

2016-06-24 Thread Matt Sicker
there any programmatic 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 <boa...@gmail.com>

Re: Appender's append() method

2016-01-14 Thread Matt Sicker
> >>>> > > >>>> > > >>>> > - > > >>>> 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 <boa...@gmail.com>

Re: Reloading appender after property value changes

2016-06-27 Thread Matt Sicker
;, > "smtpUsername" : "${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 <boa...@gmail.com>

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

2016-02-10 Thread Matt Sicker
.async.AsyncLoggerContext@6bf0219d > ) > >>>>> with > >>>>>>>>>> optional Clas

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

2016-02-10 Thread Matt Sicker
ary > On Feb 10, 2016 4:22 PM, "Matt Sicker" <boa...@gmail.com> wrote: > > > Can we set up a Jenkins job to auto-deploy the latest site and javadocs? > > > > On 10 February 2016 at 16:04, Ralph Goers <ralph.go...@dslextreme.com> > >

Re: Custom appender not identified in OSGi environment

2016-02-05 Thread Matt Sicker
t; >>>>>>>>> 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 <boa...@gmail.com>

Re: Custom appender not identified in OSGi environment

2016-02-05 Thread Matt Sicker
pax-logging-log4j2 1.8.4 > [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 Fr

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 <boa...@gmail.com> 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 <javaworkingg.

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

2016-01-29 Thread Matt Sicker
log with a message template, 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" <boa...@

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

2016-01-29 Thread Matt Sicker
y. > > Ralph > > > On Jan 29, 2016, at 4:57 PM, Matt Sicker <boa...@gmail.com> 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

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

2016-01-29 Thread Matt Sicker
.com> wrote: > > > > That only works when you call an API that is typed with Throwable. > > > > G > >> On Jan 29, 2016 2:11 PM, "Matt Sicker" <boa...@gmail.com> wrote: > >> > >> Why can't it log the stack trace as well? Can't

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 <boa...@gmail.com>

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 <boa...@gmail.com>

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

2016-01-26 Thread Matt Sicker
appender through > the > > > LoggerContext? > > > > > > 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 <boa...@gmail.com>

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

2016-01-27 Thread Matt Sicker
PM, Apostolis Giannakidis < > > >>>>> ap.giannaki...@gmail.com> wrote: > > >>>>> > > >>>>>> Well, since the idea is to add it to the Appender interface, it > > means > > >>>>> that > > >>>&

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

2016-01-27 Thread Matt Sicker
, Mikael Ståldal <mikael.stal...@magine.com> wrote: > I don't quite understand what you mean. > > On Wed, Jan 27, 2016 at 4:02 PM, Matt Sicker <boa...@gmail.com> wrote: > > > That sounds a little fragile as some people either create or modify their > > creatio

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

2016-03-09 Thread Matt Sicker
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 <boa...@gmail.com>

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

2016-03-09 Thread Matt Sicker
t; a listener of some kind... > > > > Gary > > > > On Wed, Mar 9, 2016 at 9:37 AM, Matt Sicker <boa...@gmail.com> wrote: > > > > > Appenders are usually final because the appender itself doesn't do much > > > work (the managers do that), or at le

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

2016-04-07 Thread Matt Sicker
ut it's not > working in log4j2.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 <boa...@gmail.com>

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

2016-03-04 Thread Matt Sicker
gt; > > > >> > > MB"* > > > /> > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> >> > > >> > *"${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 <boa...@gmail.com>

Re: controlling the status logger output?

2016-03-07 Thread Matt Sicker
pender 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 <boa...@gmail.com>

Re: Log4j2 Backwards Compatibility

2016-03-07 Thread Matt Sicker
gt; configuration 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 <boa...@gmail.com>

Re: Log4j2 Backwards Compatibility

2016-03-07 Thread Matt Sicker
t; different parameters, class 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 <boa...@gmail.com> wrote: > > > > There is no current support for the previous format, but

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

2016-04-27 Thread Matt Sicker
. -- Matt Sicker <boa...@gmail.com>

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

2016-05-11 Thread Matt Sicker
gt; >>> I read that for remote mode of the flume appender I only need the > >> 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 <boa...@gmail.com>

Re: uncaught exception with log4j2

2016-05-03 Thread Matt Sicker
'd like to use log4j2 log those exceptions. Can > > anyone point me in the right direction. > > > > > > > > > vpyang > > > > > > > > > > > - > > To unsubscribe, e-mai

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

2016-05-04 Thread Matt Sicker
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 > -- Matt Sicker <boa...@gmail.com>

Re: Dynamically creating loggers

2016-04-15 Thread Matt Sicker
t/uploads/2014/10/evolution-of-the-wheel-300x85.jpg > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > >

Re: Separate appender for each application in same Tomcat

2016-04-14 Thread Matt Sicker
ication to write to there own files. >>>>> Both applications have very similar 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 <boa...@gmail.com>

Re: Java Servlet request log using log4j2

2016-07-29 Thread Matt Sicker
er3/> > 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 <boa...@gmail.com>

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 <boa...@gmail.com> wrote: > > > I thought I made a feature request for

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
uglogs/Scheduler/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 <boa...@gmail.com>

Re: [ANNOUNCEMENT] Log

2016-07-10 Thread Matt Sicker
from 1.11 to 1.12. >> >> >> Apache Log4j 2.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 <boa...@gmail.com>

Re: Disabling Garbage-free not working

2016-07-01 Thread Matt Sicker
@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 <boa...@gmail.com>

Re: 2.8.1 release

2017-02-07 Thread Matt Sicker
15-24 > 44536 Lünen > > Rechtlicher Hinweis: > Amtsgericht Dortmund, HRB 20621 > Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus > Aufsichtsrat: Dr. Burkhard Igel (Vors.), Michael Neuhaus, Jennifer > Fiorentino > -- Matt Sicker <boa...@gmail.com>

[ANN] Log4j 2.8 released

2017-01-27 Thread Matt Sicker
en 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: https://logging.apache.org/log4j/2.x/ -- Matt S

Re: SMTP appender and TLS

2017-02-21 Thread Matt Sicker
he SMTP appender? > https://logging.apache.org/log4j/2.x/manual/appenders.html#SMTPAppender > > Thanks > Benjamin > -- Matt Sicker <boa...@gmail.com>

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
;> > >>>>>> -Marshall Schor > >>>>>> > >>>>>> P.S., here's the API call I did to set a filter: > >>>>>> > >>>>>> // coreLogger is a cast of a normal logger, to enable the get() > method > >>>>>> coreLogger.get().addFilter(myFilter); > >>>>>> > >>>>>> // not sure if this is needed, but did it anyways > >>>>>> coreLogger.getContext().updateLoggers(); > >>>>>> > >>>>>> > >>>>>> > >>>>>> > - > >>>>>> 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 > <mailto:log4j-user-unsubscr...@logging.apache.org> > >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > <mailto: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 > > > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker <boa...@gmail.com>

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
ut Logback is now much better > than it was. > > Ralph > > > On Feb 23, 2017, at 8:33 PM, Matt Sicker <boa...@gmail.com> wrote: > > > > That's good to hear! A lot of people still use SLF4J with Log4j 2, so > > anything that makes them more performant is a nice b

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
se to explain it. But a real-world example would probably be > much better. > > > > Ralph > > > >> On Feb 23, 2017, at 8:54 PM, Matt Sicker <boa...@gmail.com> wrote: > >> > >> I haven't used markers much, but I've finally figured out an interes

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
g stored in the field "config"? > >>>>> > >>>>> -Marshall Schor > >>>>> > >>>>> P.S., here's the API call I did to set a filter: > >>>>> > >>>>> // coreLogger is a cast of a normal logger, to enable the get() > method > >>>>> coreLogger.get().addFilter(myFilter); > >>>>> > >>>>> // not sure if this is needed, but did it anyways > >>>>> coreLogger.getContext().updateLoggers(); > >>>>> > >>>>> > >>>>> > >>>>> > - > >>>>> 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 > <mailto:log4j-user-unsubscr...@logging.apache.org> > >>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > <mailto: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 <boa...@gmail.com>

Re: SocketAppender application name

2017-02-24 Thread Matt Sicker
gt; """ > > Now, I've looked all over the code and I can't figure out what system > property it is referring to. > > Does anybody know? Thanks. > > -- > Christopher > -- Matt Sicker <boa...@gmail.com>

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Matt Sicker
services for Capital One. The > information > > transmitted herewith is intended only for use by the individual or entity > > to which it is addressed. If the reader of this message is not the > intended > > recipient, you are hereby notified that any review, retransmission, > &g

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Matt Sicker
g with Async > had some of the same char > > Here’s our layout pattern: > >[%t] %d{DATE} %-5p %-15c{1} [%X]: %cm%n > > Please not the %cm is a custom message handler that we use to use to > handle security filtering of the message payload aka we extend from >

Re: Triggering a purge programatically

2016-08-16 Thread Matt Sicker
t; > > > > > > > > > > i.e. create 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 <boa...@gmail.com>

Re: 2.8.1 release and LOG4J2-1804

2017-02-26 Thread Matt Sicker
p of users affected. > > >> As a matter of fact - any user that happened to use a rolling pattern > > that > > >> does not prepend the '%i' with a dash. > > >> > > >> Anyway, I hope it's not our of the question for you guys to be able to > > kick > > >> out a version within like a week or so, > > >> but if that is not the case just let us know. > > >> > > >> Appreciate your work, > > >> Shlomi > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker <boa...@gmail.com>

Re: Profile controlled filtering

2017-02-27 Thread Matt Sicker
t; -- > > Stefan Mahler http://www.icongmbh.de > > Application Development > > icon Systemhaus GmbHTel. +49 711 806098-167 > > Hauptstätter Straße 70 > > 70178 Stuttgart Fax. +49 711 806098-299 > > > > > > Geschäftsführer: Uwe Seltmann, Andreas Schwegler > > HRB Stuttgart 17655 > > USt-IdNr.: DE 811944121 > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > -- Matt Sicker <boa...@gmail.com>

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

2016-09-06 Thread Matt Sicker
/> > 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 <boa...@gmail.com>

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

2016-09-06 Thread Matt Sicker
Servlet > 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 <boa...@gmail.com>

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

2016-09-06 Thread Matt Sicker
the API module's util package private, but I really > > >> don't like making changes that could break user code for no good > > reason... > > >> > > >> Sent from my iPhone > > >> > > >>> On 2016/09/07

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

2016-09-09 Thread Matt Sicker
omment out the block in > my web.xml that configures this filter and restarted 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 <boa...@gmail.com>

Re: Logger Wrapper + Trace API = Issues

2016-09-10 Thread Matt Sicker
I extend? How can I create an > instance of this custom logger afterwards? > > 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 <boa...@gmail.com>

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 <boa...@gmail.com> wrote: > When you make a custom Logger wrapper, you need to use the logMessage()

Re: Disable lookups in log messages

2016-08-18 Thread Matt Sicker
ble-date-lookup-log4j-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 <boa...@gmail.com>

Re: Log4j2 script to generate hash

2016-11-08 Thread Matt Sicker
script where the log event can > actually be modified? > > Thanks, > Ben > -- Matt Sicker <boa...@gmail.com>

Re: Log4j2 script to generate hash

2016-11-10 Thread Matt Sicker
;> >>>>> > >> >>>>> But it returns 'null' > >> >>>>> > >> >>>>>> On Tue, Nov 8, 2016 at 5:18 PM, Remko Popma < > remko.po...@gmail.com > >> > > >> >>>> wrote: >

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
gt; 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 <boa...@gmail.com>

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
the logs > together. This 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 <boa...@gmail.com> wrote: > > > I'm saying the architecture of the code depends on the language you're > >

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
ble 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 <boa...@gmail.com>

Re: porting log4j2 to .NET

2016-10-18 Thread Matt Sicker
denominator. > > > 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: M

Re: approach for defining loggers

2016-10-17 Thread Matt Sicker
> > > 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=1789=9325=1617290459& > linkCode=as2=garygregory-20=cadb800f39946ec62ea2b1af9fe6a2b8> > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20=am2=1= > 1617290459> > JUnit in Action, Second Edition > <https://www.amazon.com/gp/product/1935182021/ref=as_li_ > tl?ie=UTF8=1789=9325=1935182021& > linkCode=as2=garygregory-20=31ecd1f6b6d1eaf8886ac902a24de418%22 > > > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20=am2=1= > 1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8=1789=9325=1935182951& > linkCode=%7B%7BlinkCode%7D%7D=garygregory-20=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20=am2=1= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker <boa...@gmail.com>

Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-25 Thread Matt Sicker
*/ > > public Log4JTracer(Class clazz) > > { > > Logger logger = LogManager.getLogger(clazz); > > log = new ExtendedLoggerWrapper((ExtendedLogger) logger, > > logger.getName(), logger.getMessageFactory()); > > } > > > > >

Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-24 Thread Matt Sicker
t; } > > > > /** > >* {@inheritDoc} > >*/ > > public boolean isFatalEnabled() { > > return log.isFatalEnabled(); > > } > > > > > > > > > > /** > >* {@inheritDoc} > >*/ > > public void fatal(Object message, Throwable t) { > > log.logIfEnabled(FQCN, Level.FATAL, null, message, t); > > } > > > > > > /** > >* {@inheritDoc} > >*/ > > @Override > > public boolean isDebugEnabled() { > > return log.isDebugEnabled(); > > } > > > > /** > >* {@inheritDoc} > >*/ > > @Override > > public boolean isInfoEnabled() { > > return log.isInfoEnabled(); > > } > > > > > > public static Log4JTracer getTracer(Class cl) { > > return new Log4JTracer(cl); > > } > > > > > > public static Log4JTracer getTracer(String name) { > > return new Log4JTracer(name); > > } > > > > } > > > > > > Now when I try to use a logger from a class as below, It does not get > > the logger according to the config: > > > > > > > > Public class Test { > > > > > > > > Private TraceInterface trace; > > > > > > > > Public void execute() { > > > > > > > > TraceFactory.initialize("test"); > > > > trace = TraceFactory.getTracer(); > > > > trace.debug("testing.."); // this never prints. Although a test.log is > > created with zero size as soon as the TraceFactory.initialize method > > finshes. > > > > > > > > > > > > Thanks and Regards, > > > > Tarun > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker <boa...@gmail.com>

Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-27 Thread Matt Sicker
d to always use my wrappers. But this will not be the case. > > So, I am going to try the other two approaches that you have suggested. > > > Best Regards, > Tarun > > -Original Message- > From: Matt Sicker [mailto:boa...@gmail.com] > Sent: Friday, November 25, 20

Re: Switching log levels at runtime with log4j2

2016-11-28 Thread Matt Sicker
; Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8=1789=9325=1935182951& > linkCode=%7B%7BlinkCode%7D%7D=garygregory-20=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20=am2=1= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker <boa...@gmail.com>

Re: Building log4j2 configuration files programmatically

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

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

2016-11-17 Thread Matt Sicker
its 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 <boa...@gmail.com>

Re: Context-wide filter not working for me

2016-12-06 Thread Matt Sicker
the method I mentioned earlier: > [image: Inline image 1] > > Am I missing something here? > > Thanks, > Guy Marom > -- Matt Sicker <boa...@gmail.com>

Re: Save the date: ApacheCon Miami, May 15-19, 2017

2016-12-03 Thread Matt Sicker
there, I'd focus more on our new Scala API. On 3 December 2016 at 09:33, Apache <ralph.go...@dslextreme.com> wrote: > I will probably try to go. I haven’t made up my mind about doing a talk. > I’d be OK with you doing one. > > Ralph > > > On Dec 2, 2016, at 7:14 PM, Matt Sick

Re: Save the date: ApacheCon Miami, May 15-19, 2017

2016-12-02 Thread Matt Sicker
you, > and your project, can’t afford to miss it. > > -- > Rich Bowen - rbo...@apache.org > VP, Conferences > http://apachecon.com > @apachecon > > > ----- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker <boa...@gmail.com>

<    1   2   3   4   5   >