Re: FlowMessageFactory

2016-02-21 Thread Ralph Goers
ilure resulted in a >> NoClassDefError... >> So I reverted to System.getProperties. >> I can take another look, or if someone else has time, please feel free to >> replace this with PropertiesUtil. >> >> On Saturday, 20 February 2016, Ralph Goers > >>

Re: FlowMessageFactory

2016-02-21 Thread Gary Gregory
ted the new properties in the Configuration manual page. >>>>>>>> Did I forget to commit that? >>>>>>>> >>>>>>>> >>>>>>>> On Saturday, 20 February 2016, Remko Popma >>>>>>>>

Re: FlowMessageFactory

2016-02-21 Thread Matt Sicker
initially used PropertiesUtil but this failed somehow. Since this >>>>>>>> is used while initializing s class constant, the failure resulted in a >>>>>>>> NoClassDefError... >>>>>>>> So I reverted to System.getProperties. >>&

Re: FlowMessageFactory

2016-02-21 Thread Gary Gregory
ass constant, the failure resulted in a >>>>>>> NoClassDefError... >>>>>>> So I reverted to System.getProperties. >>>>>>> I can take another look, or if someone else has time, please feel >>>>>>> free to replace thi

Re: FlowMessageFactory

2016-02-21 Thread Remko Popma
... >>>>>> So I reverted to System.getProperties. >>>>>> I can take another look, or if someone else has time, please feel >>>>>> free to replace this with PropertiesUtil. >>>>>> >>>>>> On Saturd

Re: FlowMessageFactory

2016-02-21 Thread Gary Gregory
erted to System.getProperties. >>>>> I can take another look, or if someone else has time, please feel free >>>>> to replace this with PropertiesUtil. >>>>> >>>>> On Saturday, 20 February 2016, Ralph Goers >>>>> wrote: >

Re: FlowMessageFactory

2016-02-21 Thread Matt Sicker
or if someone else has time, please feel free >>>> to replace this with PropertiesUtil. >>>> >>>> On Saturday, 20 February 2016, Ralph Goers >>>> wrote: >>>> >>>>> I should have qualified this to say that the >>>>> log4j

Re: FlowMessageFactory

2016-02-21 Thread Ralph Goers
the PropertiesUtil class. Properties should be access through > its methods. > > Ralph > >> On Feb 19, 2016, at 1:09 PM, Ralph Goers > >> wrote: >> >> I see two new properties to allow users to override the default >> MessageFactory and FlowMessageFac

Re: FlowMessageFactory

2016-02-21 Thread Matt Sicker
On Saturday, 20 February 2016, Ralph Goers >>> wrote: >>> >>>> I should have qualified this to say that the >>>> log4j2.component.properties file is managed by the PropertiesUtil class. >>>> Properties should be access through its methods. >>>

Re: FlowMessageFactory

2016-02-21 Thread Remko Popma
n Feb 19, 2016, at 1:09 PM, Ralph Goers >>> wrote: >>> >>> I see two new properties to allow users to override the default >>> MessageFactory and FlowMessageFactory. It seems very unlikely they will >>> ever get used, but they should NOT be calling System.getProperty() d

Re: FlowMessageFactory

2016-02-19 Thread Remko Popma
ualified this to say that the log4j2.component.properties >> file is managed by the PropertiesUtil class. Properties should be access >> through its methods. >> >> Ralph >> >> On Feb 19, 2016, at 1:09 PM, Ralph Goers >> wrote: >> >> I see two new properties to a

Re: FlowMessageFactory

2016-02-19 Thread Remko Popma
Ralph Goers > wrote: > > I see two new properties to allow users to override the default > MessageFactory and FlowMessageFactory. It seems very unlikely they will > ever get used, but they should NOT be calling System.getProperty() directly. > > Please remember that wherever a

Re: FlowMessageFactory

2016-02-19 Thread Ralph Goers
e default > MessageFactory and FlowMessageFactory. It seems very unlikely they will ever > get used, but they should NOT be calling System.getProperty() directly. > > Please remember that wherever adding something to the configuration won’t > work you should acce

Re: FlowMessageFactory

2016-02-19 Thread Ralph Goers
I see two new properties to allow users to override the default MessageFactory and FlowMessageFactory. It seems very unlikely they will ever get used, but they should NOT be calling System.getProperty() directly. Please remember that wherever adding something to the configuration won’t work

Re: FlowMessageFactory

2016-02-19 Thread Gary Gregory
On Fri, Feb 19, 2016 at 9:24 AM, Remko Popma wrote: > > FlowMessageFactory is now extracted. I'm quite happy with the result. > Please take a look at https://issues.apache.org/jira/browse/LOG4J2-1255 for further follow-up. OK, that seems fine. Thank you for doing the work. The o

Re: FlowMessageFactory

2016-02-19 Thread Remko Popma
FlowMessageFactory is now extracted. I'm quite happy with the result. Please take a look at https://issues.apache.org/jira/browse/LOG4J2-1255 for further follow-up. On Fri, Feb 19, 2016 at 2:40 PM, Remko Popma wrote: > I see, so there actually is a use case to remove the need

Re: FlowMessageFactory

2016-02-18 Thread Remko Popma
;> >> On Feb 18, 2016 5:38 PM, "Remko Popma" wrote: >> > >> > I would start with just a default FlowMessageFactory. Configurable with a >> > system property, so users can swap in their own if they want. >> > >> > Only if the need a

Re: FlowMessageFactory

2016-02-18 Thread Ralph Goers
t; > On Feb 18, 2016 5:38 PM, "Remko Popma" <mailto:[email protected]>> wrote: > > > > I would start with just a default FlowMessageFactory. Configurable with a > > system property, so users can swap in their own if they want. > > > > Only i

Re: FlowMessageFactory

2016-02-18 Thread Gary Gregory
On Feb 18, 2016 5:38 PM, "Remko Popma" wrote: > > I would start with just a default FlowMessageFactory. Configurable with a system property, so users can swap in their own if they want. > > Only if the need arises to configure FlowMessageFactories on a per-logger basis, we c

Re: FlowMessageFactory

2016-02-18 Thread Remko Popma
I would start with just a default FlowMessageFactory. Configurable with a system property, so users can swap in their own if they want. Only if the need arises to configure FlowMessageFactories on a per-logger basis, we can consider adding the methods to LogManager to support that. So no need

Re: FlowMessageFactory

2016-02-18 Thread Gary Gregory
On Thu, Feb 18, 2016 at 4:22 PM, Ralph Goers wrote: > Is it really necessary to have getLogger support FlowMessageFactory? > These messages are really meant as wrappers for other messages. so I am not > even sure what it would mean for getLogger() to support that. How would it &g

Re: FlowMessageFactory

2016-02-18 Thread Ralph Goers
Is it really necessary to have getLogger support FlowMessageFactory? These messages are really meant as wrappers for other messages. so I am not even sure what it would mean for getLogger() to support that. How would it know what Message it is wrapping? I am really getting sorry that I

Re: FlowMessageFactory

2016-02-18 Thread Remko Popma
rate instances so users can configure them >> separately: lower coupling. >> > > OK. So now we have: > > org.apache.logging.log4j.LogManager.getLogger(Class, MessageFactory) > org.apache.logging.log4j.LogManager.getLogger(Object, MessageFactory) > o

Re: FlowMessageFactory

2016-02-18 Thread Gary Gregory
g4j.LogManager.getLogger(Class, MessageFactory) org.apache.logging.log4j.LogManager.getLogger(Object, MessageFactory) org.apache.logging.log4j.LogManager.getLogger(String, MessageFactory) We would add: org.apache.logging.log4j.LogManager.getLogger(Class, MessageFactory, FlowMessageFactory) org.apache.logging.log

Re: FlowMessageFactory

2016-02-18 Thread Remko Popma
, "Remko Popma" wrote: >> Would anyone mind terribly if I factored out the FlowMessage creation >> methods from MessageFactory to a new interface FlowMessageFactory? >> >> Concretely, this interface would contain the methods introduced in >> LOG4J2-1255: &g

Re: FlowMessageFactory

2016-02-18 Thread Gary Gregory
Would anyone mind terribly if I factored out the FlowMessage creation > methods from MessageFactory to a new interface FlowMessageFactory? > > Concretely, this interface would contain the methods introduced in > LOG4J2-1255: > > EntryMessage newEntryMessage(Message message); >

FlowMessageFactory

2016-02-18 Thread Remko Popma
Would anyone mind terribly if I factored out the FlowMessage creation methods from MessageFactory to a new interface FlowMessageFactory? Concretely, this interface would contain the methods introduced in LOG4J2-1255: EntryMessage newEntryMessage(Message message); ExitMessage newExitMessage