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 <nic...@msn.com> wrote: > > > > I could have sworn I saw some way to provide a sink for log4j2 (or maybe it &g

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

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

RE: range filter?

2015-08-26 Thread Nicholas Duane
. Ralph On Aug 26, 2015, at 6:12 AM, Nicholas Duane nic...@msn.com wrote: Hmmm, I thought for log4j the threshold was less than or equal to the level. For instance, if the threshold is INFO then INFO and less than, eg more critical like WARN ERROR and FATAL would match. It's

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: ?xml version=1.0 encoding=UTF-8?

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
by the configuration _before_ the custom levels... Gary On Wed, Aug 26, 2015 at 11:19 AM, Nicholas Duane nic...@msn.com wrote: 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

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
above suspicion was unfounded, see my new test org.apache.logging.log4j.core.CustomLevelsWithFiltersTest 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

RE: range filter?

2015-08-25 Thread Nicholas Duane
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 nic...@msn.com wrote: Maybe.  However, I'm having a hard time following what the configuration is saying and thus have no idea

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
and below levels. Thanks,Nick Original message From: Nicholas Duane nic...@msn.com Date: 08/25/2015 7:46 PM (GMT-07:00) To: Log4J Users List log4j-user@logging.apache.org Subject: RE: redefining existing levels? Yes and no. The user might know how to turn on/off logging

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
existing levels? From: garydgreg...@gmail.com To: log4j-user@logging.apache.org On Wed, Aug 26, 2015 at 9:19 AM, Nicholas Duane nic...@msn.com wrote: I guess the main use case we're trying to solve is someone, maybe some admin or maybe a developer asking the admin, thinking they should turn

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
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. Op 26-8-2015 om 3:46 schreef Nicholas Duane: Yes and no. The user might know how to turn on/off logging, but they might

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
...@gmail.com To: log4j-user@logging.apache.org On Wed, Aug 26, 2015 at 9:19 AM, Nicholas Duane nic...@msn.com wrote: I guess the main use case we're trying to solve is someone, maybe some admin or maybe a developer asking the admin, thinking they should turn logging off and thus sets

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
. 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 nic...@msn.com wrote: Maybe what I'm trying to do is not that useful. However, I'm

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
not the one who allows your users this functionality? Or do they get to set a dedicated config script? Can't your user actions simply be filtered or disallowed, or not even presented?. Or are your users programmers?. Sent from my iPhone On 2015/08/26, at 11:35, Nicholas Duane nic

RE: redefining existing levels?

2015-08-26 Thread Nicholas Duane
is info and that it is not to be changed under any circumstances? Ralph On Aug 26, 2015, at 9:27 AM, Nicholas Duane nic...@msn.com wrote: Maybe what I'm trying to do is not that useful. However, I'm guessing the person mucking around with things would probably feel uncomfortable

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:

RE: plugins

2015-08-27 Thread Nicholas Duane
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, 2015 at 11:51 AM, Nicholas Duane nic...@msn.com wrote

RE: plugins

2015-08-27 Thread Nicholas Duane
? If you build your project then it should get packaged in a jar and automatically have the file Log4j uses to quickly load the plugin. Ralph On Aug 27, 2015, at 12:50 PM, Nicholas Duane nic...@msn.com wrote: Based on your previous comments I assume one would show up out-of-the-box

RE: plugins

2015-08-27 Thread Nicholas Duane
with: package com.mycomp.pluginpackage; import ... And change your config to Configuration status=trace packages=com.mycomp.pluginpackage Using the plugin class name in the packages attribute won't work. On Friday, August 28, 2015, Nicholas Duane nic...@msn.com wrote: I tried that. I

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

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
to Google how to install 2.3 on Fedora ;-) Gary On Wed, Aug 26, 2015 at 12:14 PM, Nicholas Duane nic...@msn.com wrote: First off let me admit that I'm a noob at both Linux and java, and log4j for that matter. I don't know how to package anything so my class that you

RE: custom levels via configuration

2015-08-29 Thread Nicholas Duane
it mean to have a value less than that? Ralph On Aug 29, 2015, at 7:22 PM, Nicholas Duane nic...@msn.com 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

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
-user@logging.apache.org Nick, Your BUSINESS level should be configurable per https://logging.apache.org/log4j/2.x/manual/customloglevels.html#DefiningLevelsInConfiguration I can't look into the rest ATM. Gary On Tue, Aug 25, 2015 at 2:16 PM, Nicholas Duane nic...@msn.com wrote

RE: range filter?

2015-08-26 Thread Nicholas Duane
are correct. The level values do decrease. 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 nic...@msn.com wrote: Hmmm, I thought for log4j the threshold was less than or equal

RE: range filter?

2015-08-26 Thread Nicholas Duane
log4j-user@logging.apache.org Subject: Re: range filter? I just did. Ralph On Aug 25, 2015, at 9:12 PM, Nicholas Duane nic...@msn.com 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

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
...@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 27, 2015 at 3:19 AM, Nicholas Duane nic...@msn.com wrote

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
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, Nicholas Duane nic...@msn.com wrote: While I work on figuring

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
On Thu, Aug 27, 2015 at 8:22 AM, Nicholas Duane nic...@msn.com wrote: Both were not found from my HelloClass. And I had sent out some log4j logging in where there was a warning which I assume was related to me using INFOM1 in the threshold filter. Thanks, Nick Date: Thu, 27 Aug 2015

RE: custom levels via configuration

2015-08-26 Thread Nicholas Duane
-SNAPSHOT. I'll leave you to Google how to install 2.3 on Fedora ;-) Gary On Wed, Aug 26, 2015 at 12:14 PM, Nicholas Duane nic...@msn.com wrote: First off let me admit that I'm a noob at both Linux and java, and log4j for that matter. I don't know how to package anything so my class

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
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 <nic...@msn.com> wrote: > > > > I'm curious if there is

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
> 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 <nic...@msn.com> wrote: > > > I did look through a bit of documentation on markers: > > > > https://logging.apache.org/log4j/2

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
think we need docs for users new to logging... > > Gary > > On Mon, Aug 31, 2015 at 3:16 PM, Gary Gregory <garydgreg...@gmail.com> > wrote: > > > On Mon, Aug 31, 2015 at 3:07 PM, Nicholas Duane <nic...@msn.com> wrote: > > > >> All sounds reasonabl

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
rs. > > 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 <nic...@msn.com> wrote: > > > > All sounds r

RE: approach for defining loggers

2015-08-31 Thread Nicholas Duane
g.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 <nic...@msn.com> wrote: > > > While I'm new to log4j I would say I'm not new to logging. We've written

RE: approach for defining loggers

2015-09-01 Thread Nicholas Duane
r 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, 2015 a

RE: approach for defining loggers

2015-09-07 Thread Nicholas Duane
ging-frameworks-and-that-is-a-reason-to-use-them>. Ralph > On Sep 7, 2015, at 5:54 PM, Nicholas Duane <nic...@msn.com> 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 c

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, 2015 at 5:54 PM

RE: approach for defining loggers

2015-09-08 Thread Nicholas Duane
w.com/questions/16813032/what-is-markers-in-java-logging-frameworks-and-that-is-a-reason-to-use-them>. > > Ralph > > > > > > On Sep 7, 2015, at 5:54 PM, Nicholas Duane <nic...@msn.com> wrote: > > > > If I'm attempting to control all the loggi

RE: approach for defining loggers

2015-09-08 Thread Nicholas Duane
g) but you cannot code logger.info(BUSINESS, msg). > > Ralph > > > On Sep 8, 2015, at 6:09 PM, Nicholas Duane <nic...@msn.com> 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
iness > > 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 <nic...@msn.com&g

range filter?

2015-08-25 Thread Nicholas Duane
I'm looking for a range filter in log4j2. I see there is on in log4net and it appears there was one written by someone for log4j 1. Just wondering if there is something 'out of the box' in log4j2 that will accomplish the same? I was wondering whether this could be accomplished with the

redefining existing levels?

2015-08-25 Thread Nicholas Duane
Can existing log4j2 levels be redefined? I'm able to do this in log4net. I have yet to see any documentation telling me that I can do it, however, there was none telling me I could do it for .NET either. I just happen to stumble upon a post which eluded to it. Here is what I've done in a

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
...@gmail.com To: log4j-user@logging.apache.org Ah, well, let's start with the documented stuff we know should work ;-) Gary On Tue, Aug 25, 2015 at 3:19 PM, Nicholas Duane nic...@msn.com wrote: Thanks. I assumed my 'BUSINESS' level is working using the CustomLevel, though I haven't tried

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
with a link to an example config. On Wed, Aug 26, 2015 at 8:02 AM, Gary Gregory garydgreg...@gmail.com wrote: Well, let's all work together to get you up and running. Hopefully we'll get other devs to keep chiming in. Gary On Tue, Aug 25, 2015 at 3:58 PM, Nicholas Duane nic

RE: range filter?

2015-08-25 Thread Nicholas Duane
://stackoverflow.com/questions/24695133/log4j2-filter-particular-level-in-apender/24697002#24697002 and see if that works with custom levels as well? On Wed, Aug 26, 2015 at 6:04 AM, Nicholas Duane nic...@msn.com wrote: I've tried a couple different combinations and so far no luck. Here's

RE: range filter?

2015-08-25 Thread Nicholas Duane
/24695133/log4j2-filter-particular-level-in-apender/24697002#24697002 and see if that works with custom levels as well? On Wed, Aug 26, 2015 at 6:04 AM, Nicholas Duane nic...@msn.com wrote: I've tried a couple different combinations and so far no luck. Here's the current configuration I

RE: range filter?

2015-08-25 Thread Nicholas Duane
you have the onMatch and onMismatch set appropriately. Ralph On Aug 25, 2015, at 12:36 PM, Nicholas Duane nic...@msn.com wrote: I'm looking for a range filter in log4j2. I see there is on in log4net and it appears there was one written by someone for log4j 1. Just wondering

RE: redefining existing levels?

2015-08-25 Thread Nicholas Duane
PM, Nicholas Duane nic...@msn.com wrote: Can existing log4j2 levels be redefined? I'm able to do this in log4net. I have yet to see any documentation telling me that I can do it, however, there was none telling me I could do it for .NET either. I just happen to stumble upon a post which

RE: range filter?

2015-08-25 Thread Nicholas Duane
, and that he would mark the question as done if I would edit my answer (which I did). So the answer works and seems to apply to your use case, no? The question is if it also works with custom levels. Sent from my iPhone On 2015/08/26, at 8:49, Nicholas Duane nic...@msn.com wrote

RE: range filter?

2015-08-25 Thread Nicholas Duane
to apply to your use case, no? The question is if it also works with custom levels. Sent from my iPhone On 2015/08/26, at 8:49, Nicholas Duane nic...@msn.com wrote: Thanks. I checked out the link. It seems they were trying to do something similar to me. I see the last comment

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.

RE: approach for defining loggers

2015-09-11 Thread Nicholas Duane
elps! > > Gary > > On Wed, Sep 9, 2015 at 12:47 AM, Mikael Ståldal <mikael.stal...@magine.com> > wrote: > > > Then perhaps you should create your own facade for doing business event > > logging, which could then forward them to Log4j in an appropriate way. >

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: 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

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)

RE: markers

2015-09-16 Thread Nicholas Duane
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 Wed, Sep 16, 2015 at 2:34 PM, Nicholas Duane <nic...@msn.com>

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

2015-09-16 Thread Nicholas Duane
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 <nic...@msn.com> wrote: Sending to both the log4j and log4net mailing lists. I'm curious why log4net is not more similar to log4j(2)? Is

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

2015-09-16 Thread Nicholas Duane
t: 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 <nic...@msn.

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

2015-09-16 Thread Nicholas Duane
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 <nic...@msn.com> wrote: > > > Not sure. I was going to ask what a guess on the

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: global context properties

2015-09-20 Thread Nicholas Duane
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

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

2015-09-18 Thread Nicholas Duane
e.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 > > > On We

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

2015-09-18 Thread Nicholas Duane
s 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 <nic...@msn.com> 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: status appender?

2015-12-14 Thread Nicholas Duane
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 <nic...@msn.com> 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
; 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 <nic...@msn.com> wrote: > > > > I'm curious if there is such a thing as a StatusAp

RE: status appender?

2015-12-14 Thread Nicholas Duane
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 AM, Nicholas Duane <nic...@msn.com> wrote: > &g

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
: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 > > > On N

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
alph Goers <ralph.go...@dslextreme.com> > > 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, at 8:33 AM,

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
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 > > > > On Nov 2

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
mplementation 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. > &

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
utput will then be written to > that location instead of to stdout. > > Ralph > > > On Nov 20, 2015, at 8:01 AM, Nicholas Duane <nic...@msn.com> wrote: > > > > The code happens to be a log4j2 appender, so it sounds like you're saying > > we should be using t

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
p - at which point Log4j will detect it > and ignore those logging events. > > Ralph > > > On Nov 20, 2015, at 10:55 AM, Nicholas Duane <nic...@msn.com> wrote: > > > > We're attempting to capture error, or info, events that our plugins raise. > >

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

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
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 > > encounters a problem. > > > > Ralph > > > > > On

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
should just throw a RuntimeException if it > >> encounters a problem. > >> > >> Ralph > >> > >>> On Jan 13, 2016, at 2:38 PM, Nicholas Duane <nic...@msn.com> wrote: > >>> > >>> I'm new to java so maybe this should be an

RE: Appender's append() method

2016-01-14 Thread Nicholas Duane
lt;ralph.go...@dslextreme.com> > >>> wrote: > >>> > >>>> Your appender is automatically wrapped by an AppenderControl object. The > >>>> AppenderControl will inspect the ignoreExceptions flag so your Appender > >>>> does not have

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

RE: controlling the status logger output?

2016-03-07 Thread Nicholas Duane
> 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, Nicholas Duane <nic...@msn.com

RE: controlling the status logger output?

2016-03-07 Thread Nicholas Duane
y > 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 <nic...@msn.com> wrote: > > > > We've written some appenders and I think the presc

Re: looking for source

2016-11-06 Thread Nicholas Duane
ut can format (or not) as it chooses. Ralph > On Nov 5, 2016, at 6:33 PM, Nicholas Duane <nic...@msn.com> 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

Re: looking for source

2016-11-06 Thread Nicholas Duane
cludes the ExtendedThrowableConverter by 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 <nic...@msn.com> wrote: > > My configuration simply has %msg in the pattern layout

Re: looking for source

2016-11-04 Thread Nicholas Duane
the documentation 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 <nic...@msn.com> wrote: > > I'm not that familiar with java and java conventions, package names, etc. > I'm

Re: looking for source

2016-11-05 Thread Nicholas Duane
ptures 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 <nic...@msn.com> wrote: > > Thanks. I have no problem doing that. Just wondering what needs to b

Re: looking for source

2016-11-05 Thread Nicholas Duane
ce may be a different Object than 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 <nic...@msn.com> wrote: > > Thanks for the replies. Let me ask a more

Re: looking for source

2016-11-05 Thread Nicholas Duane
gn that 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 <nic...@msn.com> wrote: > > Thanks for the info. Unfortunately I'm not foll

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
17 October 2016 at 21:46, Gary Gregory <garydgreg...@gmail.com> wrote: > On Mon, Oct 17, 2016 at 4:27 PM, Nicholas Duane <nic...@msn.com> wrote: > > > Sorry to revive this old thread. However, we're in the process of adding > > support for other "categories"

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
e, Oct 18, 2016 at 2:33 AM, Nicholas Duane <nic...@msn.com> 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 fr

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: porting log4j2 to .NET

2016-10-17 Thread Nicholas Duane
port, including tests (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 <nic...@msn.com> wrote: > Figured I would send this question out to the log4j side. I have already &

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
mework 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 <nic...@msn.com> wrote: > I guess platform is vague. Maybe I should have said language agnostic. >

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
ame, method 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

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
tional or some other exotic thing. On 18 October 2016 at 09:23, Nicholas Duane <nic...@msn.com> 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 t

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
uage is to use log files or some > sort of network appender using a standardized binary format. > > On 18 October 2016 at 08:53, Nicholas Duane <nic...@msn.com> wrote: > > > I guess platform is vague. Maybe I should have said language agnostic. > > It would be nice

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
t; > general 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 langua

Re: porting log4j2 to .NET

2016-10-19 Thread Nicholas Duane
nced and comprehensive logging framework, > so let's model the others after it. > > On Wed, Oct 19, 2016 at 3:36 AM, Nicholas Duane <nic...@msn.com> wrote: > > > But I'm not suggesting a code base that will run everywhere. As I said, > > I'm not talking about a single sou

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
scale as well. Then again, 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 <nic...@msn.com> wrote: > > I guess I don't agree. And just to be clear, I'm not talking about try

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
, Nick From: Nicholas Duane <nic...@msn.com> 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 cod

Re: porting log4j2 to .NET

2016-10-18 Thread Nicholas Duane
rs who actively 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 <nic...@msn.com> wrote: > > Doesn't sound like you're too lost. Yes, plug-ins certa

Re: approach for defining loggers

2016-10-18 Thread Nicholas Duane
hat. Thanks, Nick From: Gary Gregory <garydgreg...@gmail.com> 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 <nic...@msn.com> wrote: > Sorry to revi