Re: looking for source

2016-11-06 Thread Nicholas Duane
default as the last parameter unless you specify %noex. The exception is normally not formatted by the Message. Ralph > On Nov 6, 2016, at 4:22 PM, Nicholas Duane wrote: > > My configuration simply has %msg in the pattern layout to output the message. > However, that seems to be ou

Re: looking for source

2016-11-06 Thread Nicholas Duane
t chooses. Ralph > On Nov 5, 2016, at 6:33 PM, Nicholas Duane wrote: > > Thanks. I have no problem doing that. Just wondering what needs to be done > and how? I guess I was hoping that the logging framework, eg. log4j, handled > combining the message and the exception

Re: looking for source

2016-11-05 Thread Nicholas Duane
es message parameters and the Throwable in a single vararg array, but please consider that an implementation detail. Sent from my iPhone > On 6 Nov 2016, at 10:33, Nicholas Duane wrote: > > Thanks. I have no problem doing that. Just wondering what needs to be done > and how?

Re: looking for source

2016-11-05 Thread Nicholas Duane
all Layouts and Appenders follow and should follow. The Message object passed to the Layout may no longer have the Throwable. Sent from my iPhone > On 6 Nov 2016, at 10:01, Nicholas Duane wrote: > > Thanks for the info. Unfortunately I'm not following. If someone can point >

Re: looking for source

2016-11-05 Thread Nicholas Duane
an the one that originally held the Throwable. The Layout should get the Throwable from the LogEvent, not from the Message. Remko Sent from my iPhone > On 5 Nov 2016, at 7:50,Nicholas Duane wrote: > > Thanks for the replies. Let me ask a more pointed question now as rummaging > t

Re: looking for source

2016-11-04 Thread Nicholas Duane
on of the SCM used for more information about access behind a firewall. Enjoy! Remko Sent from my iPhone > On 4 Nov 2016, at 23:29, Nicholas Duane wrote: > > I'm not that familiar with java and java conventions, package names, etc. > I'm trying to find the source for log4

looking for source

2016-11-04 Thread Nicholas Duane
I'm not that familiar with java and java conventions, package names, etc. I'm trying to find the source for log4j2's implementation of logger.error(String, Throwable);. Can someone point me to that? I was looking around here: https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;a=tre

Re: porting log4j2 to .NET

2016-10-19 Thread Nicholas Duane
, > so let's model the others after it. > > On Wed, Oct 19, 2016 at 3:36 AM, Nicholas Duane wrote: > > > But I'm not suggesting a code base that will run everywhere. As I said, > > I'm not talking about a single source code base. What I'm suggesti

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
gory" property anyway so I think I can use that. Thanks, Nick From: Gary Gregory Sent: Monday, October 17, 2016 10:46 PM To: Log4J Users List Subject: Re: approach for defining loggers On Mon, Oct 17, 2016 at 4:27 PM, Nicholas Duane wrote: > Sorry to revive this

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
, Nick From: Nicholas Duane Sent: Tuesday, October 18, 2016 9:36 PM To: Log4J Users List Subject: Re: porting log4j2 to .NET But I'm not suggesting a code base that will run everywhere. As I said, I'm not talking about a single source code base.

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
ctively contribute to the logging project today. If you are volunteering to kick that off we won’t get in your way. Ralph > On Oct 18, 2016, at 1:53 PM, Nicholas Duane wrote: > > Doesn't sound like you're too lost. Yes, plug-ins certainly is an area where > the implemen

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
gain, some languages don’t support multi-threading so either might require all loggers to be synchronous. Ralph > On Oct 18, 2016, at 10:22 AM, Nicholas Duane wrote: > > I guess I don't agree. And just to be clear, I'm not talking about trying to > have a huge percentage,

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
eral concept of appenders, loggers, filters, etc., would all probably > > apply, but the APIs would probably differ a lot. This would affect plugin > > authors more than users of the library, but the only common things I > could > > see happening between different languages might

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
xotic thing. On 18 October 2016 at 09:23, Nicholas Duane wrote: > I agree. I'm also one for not coding to the lowest common denominator. > That's one reason we're not using a logging facade as I assume with a > facade you get only the features that are common across the se

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
sort of network appender using a standardized binary format. > > On 18 October 2016 at 08:53, Nicholas Duane wrote: > > > I guess platform is vague. Maybe I should have said language agnostic. > > It would be nice to have a single logging architecture/design run on > C/C++, >

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
o have similar logging framework for other runtimes (such as .Net). However, I would not like to constrain Log4j to only use features available on both JVM and .Net. On Tue, Oct 18, 2016 at 3:53 PM, Nicholas Duane wrote: > I guess platform is vague. Maybe I should have said language agnostic.

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
d name and line number of the caller. If these are “business” events why do you want to turn them off by the name of the logger? I would think you might want to filter out certain event types, but that shouldn’t be represented by the logger name. Ralph > On Oct 18, 2016, at 6:47 AM, Nichola

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
18, 2016 at 2:33 AM, Nicholas Duane wrote: > Figured I would send this question out to the log4j side. I have already > had some email exchanges with the log4net mailing list regarding porting > log4j2 to .NET. My suggestion was that the apache logging framework be a > single archi

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
6 at 21:46, Gary Gregory wrote: > On Mon, Oct 17, 2016 at 4:27 PM, Nicholas Duane wrote: > > > Sorry to revive this old thread. However, we're in the process of adding > > support for other "categories" of events and thus I wanted to first take > a > &g

Re: porting log4j2 to .NET

2016-10-17 Thread Nicholas Duane
(what about docs): 6 man-months. You can shorten things up by reducing appenders and configuration formats. Gary On Mon, Oct 17, 2016 at 5:33 PM, Nicholas Duane wrote: > Figured I would send this question out to the log4j side. I have already > had some email exchanges with the log4net mail

porting log4j2 to .NET

2016-10-17 Thread Nicholas Duane
Figured I would send this question out to the log4j side. I have already had some email exchanges with the log4net mailing list regarding porting log4j2 to .NET. My suggestion was that the apache logging framework be a single architecture design which is platform agnostic and then teams which

Re: approach for defining loggers

2016-10-17 Thread Nicholas Duane
ted. Thanks, Nick From: Mikael Ståldal Sent: Wednesday, September 9, 2015 3:47 AM To: Log4J Users List Subject: Re: approach for defining loggers Then perhaps you should create your own facade for doing business event logging, which could then forward them to Log4j

RE: controlling the status logger output?

2016-03-07 Thread Nicholas Duane
; To: log4j-user@logging.apache.org > > If you set the status level to ERROR the StatusLogger should generate very > little output. That said, if you are concerned you can redirect stdout and > implement the rolling yourself. > > Ralph > > > On Mar 7, 2016, at 8:39 AM

RE: controlling the status logger output?

2016-03-07 Thread Nicholas Duane
ROR the StatusLogger should generate very > little output. That said, if you are concerned you can redirect stdout and > implement the rolling yourself. > > Ralph > > > On Mar 7, 2016, at 8:39 AM, Nicholas Duane wrote: > > > > We've written some appenders an

controlling the status logger output?

2016-03-07 Thread Nicholas Duane
We've written some appenders and I think the prescribed approach is to use the status logger in log4j2 components, is that correct? The problem we're running into is that we redirect stdout to a file and thus that file can grow unbounded. It seems there's no way to have something like a rollin

RE: Appender's append() method

2016-01-14 Thread Nicholas Duane
> >>> wrote: > >>> > >>>> Your appender is automatically wrapped by an AppenderControl object. The > >>>> AppenderControl will inspect the ignoreExceptions flag so your Appender > >>>> does not have to. Your Appender should ju

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
; wrote: > > > >> Your appender is automatically wrapped by an AppenderControl object. The > >> AppenderControl will inspect the ignoreExceptions flag so your Appender > >> does not have to. Your Appender should just throw a RuntimeException if it > >> enc

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
ntrol object. The > > AppenderControl will inspect the ignoreExceptions flag so your Appender > > does not have to. Your Appender should just throw a RuntimeException if it > > encounters a problem. > > > > Ralph > > > > > On Jan 13, 2016, at 2:38 PM, Ni

Appender's append() method

2016-01-13 Thread Nicholas Duane
I'm new to java so maybe this should be an obvious question to most java developers. If I'm trying to override the append() method but also throw exceptions, how is that done? I'm asking because I assume my append method's outermost catch block is to inspect the ignoreExceptions flag and eithe

RE: status appender?

2015-12-14 Thread Nicholas Duane
to look at some message oriented middleware solution, like JMS or > the like. > > Remko > > Sent from my iPhone > > > On 2015/12/15, at 3:27, Nicholas Duane wrote: > > > > I'll give a brief description on the setup so that hopefully you have a > >

RE: status appender?

2015-12-14 Thread Nicholas Duane
r in your appender should only be > logging errors or other events that occur within that Appender, which > normally would be nothing. Routing events being processed by an Appender > through a Logger is a bad idea. > > Ralph > > > > > On Dec 14, 2015, at 10:17 A

RE: status appender?

2015-12-14 Thread Nicholas Duane
your > configuration so that the FATAL-INFO events go to one Appender and the DEBUG > and TRACE events go to another Appender. > > Ralph > > > On Dec 14, 2015, at 8:34 AM, Nicholas Duane wrote: > > > > I'm curious if there is such a thing as a StatusAppender i

status appender?

2015-12-14 Thread Nicholas Duane
I'm curious if there is such a thing as a StatusAppender in log4j2 which, as you would guess, is the appender the StatusLogger would use? Here's what I'm trying to solve, I think. I've been telling other developers I work with that a piece of code should only write to a single logger. The reas

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
> > > On Nov 30, 2015, at 12:46 PM, Ralph Goers > > wrote: > > > > From Log4j’s perspective, what is logged is the Message. Each message may > > have a different way of encapsulating its information. > > > > Ralph > > > >> On Nov 30, 2015

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
2015 08:30:37 -0700 > To: log4j-user@logging.apache.org > > Log4j2 logs Message objects. The object being logged is contained within the > message. You would normally call getFormattedMessage() to get the message > String if that is what you are after. > > Ralph > >

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
rray to be the original object that was logged? Thanks, Nick > Subject: Re: StatusLogger > From: ralph.go...@dslextreme.com > Date: Fri, 20 Nov 2015 12:08:38 -0700 > To: log4j-user@logging.apache.org > > OK - so it sounds like you are fine. > > Ralph > > > >

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
may result in a loop - at which point Log4j will detect it > and ignore those logging events. > > Ralph > > > On Nov 20, 2015, at 10:55 AM, Nicholas Duane wrote: > > > > We're attempting to capture error, or info, events that our plugins raise. > > Fo

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
e configuration element. The output will then be written to > that location instead of to stdout. > > Ralph > > > On Nov 20, 2015, at 8:01 AM, Nicholas Duane wrote: > > > > The code happens to be a log4j2 appender, so it sounds like you're saying > > we sho

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
implementation doesn’t have Appenders. Instead it has > StatusListeners that receive the events. The only listeners provided with > Log4j are the StatusConsoleListener, which writes events to stdout or a > PrintStream, and StatusLoggerAdmin, which makes events available over JMX. &g

StatusLogger

2015-11-19 Thread Nicholas Duane
I'm trying to get information on the StatusLogger. I've searched and so far the log4j docs say: "Records events that occur in the logging system." There are also a bunch of articles related to people having problems with the StatusLogger. I'm just looking to find out what it is. It appears i

layout optional?

2015-11-10 Thread Nicholas Duane
>From reading the log4j2/log4net docs it appears adding a layout to an appender >is optional. If I don't add a layout to an appender how does the appender >generate the string for the event? Does it simply call toString()/ToString() >on the event object? If that's the case then if we want our

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

2015-10-29 Thread Nicholas Duane
g.apache.org > > With Async Loggers you can set an ExceptionHandler. Is that what you mean? > > Sent from my iPhone > > > On 2015/10/30, at 9:07, Nicholas Duane wrote: > > > > I could have sworn I saw some way to provide a sink for log4j2 (or maybe it > >

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

2015-10-29 Thread Nicholas Duane
I could have sworn I saw some way to provide a sink for log4j2 (or maybe it was log4net) internal events. I just did a quick search and couldn't find anything. Is there such a mechanism? If so, couldn't this be a way for you to at least capture internal errors which are not bubbled up through

RE: global context properties

2015-09-20 Thread Nicholas Duane
your factory method parameter list Log4j will automatically pass you > the current Configuration object. From that you can call the getProperties > method to get the Map of the properties that we provided in the configuration > file. > > Ralph > > > > On Sep 19, 2015,

global context properties

2015-09-19 Thread Nicholas Duane
We're using log4j to log business events. Each application needs to specify some application key/token. I don't want to add this key/token to our API which creates the event as that data is static for each application and thus should not have to appear in the API. I'm looking for some way to

RE: Why is log4net not more similar to log4j(2)?

2015-09-18 Thread Nicholas Duane
ns. Thanks, Nick > Date: Sat, 19 Sep 2015 01:00:05 +0200 > Subject: Re: Why is log4net not more similar to log4j(2)? > From: dpsen...@gmail.com > To: log4net-u...@logging.apache.org; log4j-user@logging.apache.org > > See inline.. > > 2015-09-18 21:21 GMT+02:00 Nicholas D

RE: Why is log4net not more similar to log4j(2)?

2015-09-18 Thread Nicholas Duane
ver implements it. Take a look at http://www.apache.org/foundation/how-it-works.html. Ralph On Sep 18, 2015, at 7:32 AM, Nicholas Duane wrote:I looked over the thread you included below. I can't tell from that whether the suggestion was to port log4j2. Not sure if the comment about start

RE: Why is log4net not more similar to log4j(2)?

2015-09-18 Thread Nicholas Duane
; To: log4j-user@logging.apache.org; log4net-u...@logging.apache.org > Subject: Re: Why is log4net not more similar to log4j(2)? > Date: Fri, 18 Sep 2015 09:25:00 +0200 > > On 2015-09-17, Gary Gregory wrote: > > > "Patches welcome" is my motto :-) > > > Gary

RE: markers

2015-09-17 Thread Nicholas Duane
EXIT is called when you System.exit(), which might not be loggable > > depending on I don't know what, HEADLINE is a lame name but I can't think > > of anything better, VERBOSE is obvious IMO) > > > > Which made me wonder if your BUSINESS level could fit in

RE: Why is log4net not more similar to log4j(2)?

2015-09-16 Thread Nicholas Duane
ng.apache.org > > It's not so much that one appender is more code than another. It's all the > infrastructure underneath it all... > > Gary > > On Wed, Sep 16, 2015 at 5:06 PM, Nicholas Duane wrote: > > > Not sure. I was going to ask what a guess on the ef

RE: Why is log4net not more similar to log4j(2)?

2015-09-16 Thread Nicholas Duane
ubject: Re: Why is log4net not more similar to log4j(2)? From: garydgreg...@gmail.com To: log4j-user@logging.apache.org CC: log4net-u...@logging.apache.org Porting Log4j 2 would be a *huge* job. Would you use a translator of some kind? Gary On Wed, Sep 16, 2015 at 3:41 PM, Nicholas Duane wrote:

RE: markers

2015-09-16 Thread Nicholas Duane
e me wonder if your BUSINESS level could fit in like this: > > OFF > FATAL > ERROR > WARN > *BUSINESS* > INFO > DEBUG > TRACE > ALL > > So maybe, just maybe, I could see that a BUSINESS level makes sense instead > of a marker. > > Gary > > > On

RE: Why is log4net not more similar to log4j(2)?

2015-09-16 Thread Nicholas Duane
ink I read somewhere that log4net was a port of log4j 1. "Patches welcome" is my motto :-) Gary On Wed, Sep 16, 2015 at 2:42 PM, Nicholas Duane wrote: Sending to both the log4j and log4net mailing lists. I'm curious why log4net is not more similar to log4j(2)? Is it because th

Why is log4net not more similar to log4j(2)?

2015-09-16 Thread Nicholas Duane
Sending to both the log4j and log4net mailing lists. I'm curious why log4net is not more similar to log4j(2)? Is it because there is less development work being done on log4net and log4j had significant changes in the 2.0 version? Any chance log4net might become more of a "port" of log4j(2) a

RE: markers

2015-09-16 Thread Nicholas Duane
I was hoping on getting some replies to my last message as I'm trying to figure out the best way to utilize the existing logging frameworks, log4j(2) and log4net in our case, to log our business events and ensure the business events flow to the correct destination. I think the two main suggesti

markers

2015-09-15 Thread Nicholas Duane
I was about to starting writing a sample to see how markers work and to see if they could be used for logging business events instead of using a custom level. While I might have mentioned log4net in passing, we're trying to capture these business events using existing logging frameworks. Th

RE: approach for defining loggers

2015-09-11 Thread Nicholas Duane
I am a bit confused now. Previously someone said that if we used markers the level used in the log statement would be irrelevant. However, based on this thread it looks like that's not the case. Can someone give a definitive answer on what determines whether an event makes it to an appender?

RE: approach for defining loggers

2015-09-11 Thread Nicholas Duane
-driven-development-understanding-logging/ > > I hope it helps! > > Gary > > On Wed, Sep 9, 2015 at 12:47 AM, Mikael Ståldal > wrote: > > > Then perhaps you should create your own facade for doing business event > > logging, which could then forward them to L

RE: approach for defining loggers

2015-09-08 Thread Nicholas Duane
> > event we wouldn’t need level”? I do not understand how you can code > > logger.log(BUSINESS, msg) but you cannot code logger.info(BUSINESS, msg). > > > > Ralph > > > > > On Sep 8, 2015, at 6:09 PM, Nicholas Duane wrote: > > > > > > >

RE: approach for defining loggers

2015-09-08 Thread Nicholas Duane
gger.log(BUSINESS, msg) but you cannot code logger.info(BUSINESS, msg). > > Ralph > > > On Sep 8, 2015, at 6:09 PM, Nicholas Duane wrote: > > > > > > > > > > I looked over that stackoverflow post and I'm still not seeing a good match > &

RE: approach for defining loggers

2015-09-08 Thread Nicholas Duane
questions/16813032/what-is-markers-in-java-logging-frameworks-and-that-is-a-reason-to-use-them > > <http://stackoverflow.com/questions/16813032/what-is-markers-in-java-logging-frameworks-and-that-is-a-reason-to-use-them>. > > Ralph > > > > > > On Sep 7

RE: approach for defining loggers

2015-09-07 Thread Nicholas Duane
2015, at 5:54 PM, Nicholas Duane wrote: > > If I'm attempting to control all the logging from the configuration and I > don't know the complete set of loggers in my application as there could be > 100's or 1000's, wouldn't it be hard to separate events base

RE: approach for defining loggers

2015-09-07 Thread Nicholas Duane
> > Don't forget that loggers can be controlled by their hierarchical names: > com.example = DEBUG, usually sets all levels below it to DEBUG, like > com.example.feature1.sub1, com.example.feature1.sub2, com.example.feature2, > and so on. > > Gary > > On Mon, Sep 7,

RE: approach for defining loggers

2015-09-07 Thread Nicholas Duane
tegorize logging events by > arbitrary attributes. > > Ralph > > > > On Aug 31, 2015, at 8:10 AM, Nicholas Duane wrote: > > > > Thanks for the feedback. I will look into Markers and MDC. > > > > With respect to using a separate logger, it would se

RE: approach for defining loggers

2015-09-01 Thread Nicholas Duane
logger you're using for your other events. However, maybe the EventLogger will work. Thanks, Nick > Date: Mon, 31 Aug 2015 15:16:49 -0700 > Subject: Re: approach for defining loggers > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > On Mon, Aug 31,

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
ogging.apache.org > > Roger that. I'm just wondering how we can better serve visitors to the > site... > > Gary > > On Mon, Aug 31, 2015 at 3:47 PM, Nicholas Duane wrote: > > > While I'm new to log4j I would say I'm not new to logging. We've writt

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
; I suggest you simply do what achieves your goals. If there are multiple > options then choose the one that is easiest for your team to maintain. > > Sent from my iPhone > > > On 2015/09/01, at 7:07, Nicholas Duane wrote: > > > > All sounds reasonable to me. I&#x

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
ll of this makes me think we need docs for users new to logging... > > Gary > > On Mon, Aug 31, 2015 at 3:16 PM, Gary Gregory > wrote: > > > On Mon, Aug 31, 2015 at 3:07 PM, Nicholas Duane wrote: > > > >> All sounds reasonable to me. I'm not sure any

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
iting code > to help you do that, then it might become more obvious, as to what to do. > > Gary > > On Mon, Aug 31, 2015 at 2:51 PM, Nicholas Duane wrote: > > > I did look through a bit of documentation on markers: > > > > https://logging.apache.org/log4j/2.0/manual/

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
cross a > set of logging events. Markers are used to categorize logging events by > arbitrary attributes. > > Ralph > > > > On Aug 31, 2015, at 8:10 AM, Nicholas Duane wrote: > > > > Thanks for the feedback. I will look into Markers and MDC. > > >

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
does not fit in the Level vernacular (INFO, > WARN, and so on). > > If you needed a different set of levels, that would be another story (like > the DEFCON levels example). > > Gary > > On Mon, Aug 31, 2015 at 8:10 AM, Nicholas Duane wrote: > > > Than

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
ks, Nick > Subject: Re: approach for defining loggers > From: ralph.go...@dslextreme.com > Date: Sat, 29 Aug 2015 20:59:36 -0700 > To: log4j-user@logging.apache.org > > > > On Aug 29, 2015, at 7:44 PM, Nicholas Duane wrote: > > > > I'm curious if there is a

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
> On Aug 29, 2015, at 7:22 PM, Nicholas Duane wrote: > > I got log4j 2.3 installed and verified that custom levels are working for me > now. However, I did noticed you can't set the intValue to a negative number. > Is that by design? > > Thanks, > Nick > >

approach for defining loggers

2015-08-29 Thread Nicholas Duane
I'm curious if there is a prescribed approach to defining loggers. Let me state what my assumption is. I assume that normally if some piece of code wants to log events/messages that it should create a logger for itself. I guess a reasonable name to use is the class name itself. In terms of l

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
der than that it is no surprise that it isn’t > > working. > > > > Ralph > > > > > On Aug 26, 2015, at 2:34 PM, Nicholas Duane wrote: > > > > > > While I work on figuring out how to get a newer version of log4j2 > > > installed I'

RE: plugins

2015-08-27 Thread Nicholas Duane
While I got my LevelRangeFilter working I didn't get an answer to #1 below. Can someone answer that for me so that I can code appropriately? Thanks, Nick > From: nic...@msn.com > To: log4j-user@logging.apache.org > Subject: plugins > Date: Thu, 27 Aug 2015 14:51:58 -0400 > > > > > I've go

RE: plugins

2015-08-27 Thread Nicholas Duane
t; package com.mycomp.pluginpackage; > import ... > > And change your config to > > > Using the plugin class name in the packages attribute won't work. > > On Friday, August 28, 2015, Nicholas Duane wrote: > > > I tried that. I created a jar, I thin

RE: plugins

2015-08-27 Thread Nicholas Duane
Sent from my iPhone > > > On 2015/08/28, at 6:42, Nicholas Duane wrote: > > > > > > > > > > I don't think the implementation is the issue, though if/when I get my > > plugin loading and it doesn't work I will certainly try to compare again

RE: plugins

2015-08-27 Thread Nicholas Duane
jar and automatically have the file > Log4j uses to quickly load the plugin. > > Ralph > > > On Aug 27, 2015, at 12:50 PM, Nicholas Duane wrote: > > > > Based on your previous comments I assume one would show up out-of-the-box > > at some point. Of course I ne

RE: plugins

2015-08-27 Thread Nicholas Duane
garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > Note that I wrote such a filter, which is under review ATM here: > > - https://issues.apache.org/jira/browse/LOG4J2-1106 > - https://issues.apache.org/jira/browse/LOG4J2-1105 > > Gary > > On Thu, Aug 27,

plugins

2015-08-27 Thread Nicholas Duane
I've got a couple questions regarding plugins I'm hoping someone might be able to help me with. I checked the docs and it's still not quite clear. 1. I'm unsure what to set printObject to in my Plugin annotation. From http://logging.apache.org/log4j/2.x/manual/extending.html it says: "Sp

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
17:05:02 -0700 > To: log4j-user@logging.apache.org > > Custom log levels weren’t added to Log4j 2 until version 2.1, so if the > version you are using is older than that it is no surprise that it isn’t > working. > > Ralph > > > On Aug 26, 2015, at 2:34 PM, Nic

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
> > > > > > What was the output of this program? Were both INFOM1 and INFOP1 not > > found, > > > or was INFOM1 found (because it is used in the ThresholdFilter), but not > > > INFOP1? > > > > > > Remko > > > > > > On Thu, Aug

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
> From: remko.po...@gmail.com > To: log4j-user@logging.apache.org > > Nick, > > What was the output of this program? Were both INFOM1 and INFOP1 not found, > or was INFOM1 found (because it is used in the ThresholdFilter), but not > INFOP1? > > Remko > > On Thu, Aug

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
eleased a version "2.0-1.fc21" so it must be a Fedora build, > presumably based on 2.0 or some fork of it. > > You need to test with version 2.3 or a 2.4-SNAPSHOT. I'll leave you to > Google how to install 2.3 on Fedora ;-) > > Gary > > On Wed, Aug 26, 20

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
velsWithFiltersTest and feel > free to provide a patch to test your desired behavior. This might be a tall > order if you are a true Java newbie ;-) > > Gary > > > > > Gary > > > > > > On Wed, Aug 26, 2015 at 11:19 AM, Nicholas Duane wrote: > >

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
om Git master as well but I do not recall any > fixes in this area. > > I wonder if the Appenders are processed by the configuration _before_ the > custom levels... > > Gary > > > On Wed, Aug 26, 2015 at 11:19 AM, Nicholas Duane wrote: > > > > > &g

RE: range filter?

2015-08-26 Thread Nicholas Duane
to stdout that it couldn't find INFOM1 and INFOP1. > > Any suggestion on how to get filtering of a single level working with the > composite filter + threshold filter? > > Thanks, > Nick > > > Subject: Re: range filter? > > From: ralph.go..

custom levels via configuration

2015-08-26 Thread Nicholas Duane
On to my next problem. I'm trying to define a custom level in configuration. Not sure if it's working or not. However, when I attempt to get the level for that custom level I get back null, which I wasn't expecting. Here is the log4j2.xml config file:

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
rt the application domain. Thanks, Nick > Date: Wed, 26 Aug 2015 09:32:15 -0700 > Subject: Re: redefining existing levels? > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > On Wed, Aug 26, 2015 at 9:27 AM, Nicholas Duane wrote: > > > Maybe wha

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
the minimum > logging level is info and that it is not to be changed under any > circumstances? > > Ralph > > > On Aug 26, 2015, at 9:27 AM, Nicholas Duane wrote: > > > > Maybe what I'm trying to do is not that useful. However, I'm guessing the

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
Date: Wed, 26 Aug 2015 09:24:07 -0700 > Subject: Re: redefining existing levels? > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > On Wed, Aug 26, 2015 at 9:19 AM, Nicholas Duane wrote: > > > I guess the main use case we're trying to solve is so

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
ubject: Re: redefining existing levels? > From: garydgreg...@gmail.com > To: log4j-user@logging.apache.org > > On Wed, Aug 26, 2015 at 9:19 AM, Nicholas Duane wrote: > > > I guess the main use case we're trying to solve is someone, maybe some > > admin or maybe a devel

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
d, or not even presented?. > > Or are your users programmers?. > > > >> Sent from my iPhone > >> > >>> On 2015/08/26, at 11:35, Nicholas Duane wrote: > >>> > >>> It just dawned on me that my solution of redefining OFF to

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
quot;fatal" to be at the high end, > but I don't think there is a low and high in Log4J. When you say "below" > I take it you mean DEBUG and TRACE, but the only thing that makes sense > to me is to keep INFO, ERROR and FATAL on. > > Regards, Bart. > > >

RE: range filter?

2015-08-26 Thread Nicholas Duane
ase. > > Regardless, your point about wanting to filter on essentially a single > integer value makes sense. > > Ralph > > > On Aug 26, 2015, at 6:12 AM, Nicholas Duane wrote: > > > > Hmmm, I thought for log4j the threshold was less than or equal t

RE: range filter?

2015-08-26 Thread Nicholas Duane
ilter. > > Ralph > > > On Aug 25, 2015, at 9:39 PM, Nicholas Duane wrote: > > > > What if someone defined a custom level one less than INFO? Wouldn't that > > end up in the log also? > > Thanks,Nick > > > > Original mes

RE: range filter?

2015-08-25 Thread Nicholas Duane
2015, at 9:12 PM, Nicholas Duane wrote: > > That's exactly the use case I'm looking for. I'll have to study it some > more. Can you give me an example which filters out everything but INFO? > Thanks,Nick > > Original message > From: Remko Po

RE: range filter?

2015-08-25 Thread Nicholas Duane
gt; filters. If the result is neutral then the second filter will be used to see > if the event passes that. > > Ralph > > >> On Aug 25, 2015, at 7:09 PM, Nicholas Duane wrote: >> >> Maybe.  However, I'm having a hard time following what the confi

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
O and below levels. Thanks,Nick Original message From: Nicholas Duane Date: 08/25/2015 7:46 PM (GMT-07:00) To: Log4J Users List Subject: RE: redefining existing levels? Yes and no. The user might know how to turn on/off logging, but they might not understand what the enterpri

  1   2   >