Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Gary Gregory
On Wed, Jul 17, 2013 at 2:52 PM, Nick Williams < [email protected]> wrote: > Okay, so, proposal: I rename AppenderRuntimeException to > AppenderLoggingException and change it to extend LoggingException. Like > LoggingException, it should only be thrown when logging an event fails. > Th

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Nick Williams
Okeydokey. Nick On Jul 17, 2013, at 3:56 PM, Ralph Goers wrote: > I see your point. I guess we should leave ConfigurationException alone. > > Ralph > > > On Jul 17, 2013, at 1:03 PM, Nick Williams wrote: > >> The Javadoc for LoggingException says "Exception thrown when a exception >> occur

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Ralph Goers
I see your point. I guess we should leave ConfigurationException alone. Ralph On Jul 17, 2013, at 1:03 PM, Nick Williams wrote: > The Javadoc for LoggingException says "Exception thrown when a exception > occurs while logging." ConfigurationException is never thrown by logging, so > extend L

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Nick Williams
The Javadoc for LoggingException says "Exception thrown when a exception occurs while logging." ConfigurationException is never thrown by logging, so extend LoggingException would change the meaning of LoggingException. Do we want to change the meaning of LoggingException to encompass all errors

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Ralph Goers
I'm fine with having both AppenderRuntimeException and ConfigurationException extend LoggingException. I'm fine with renaming AppenderRuntimeException to AppenderLoggingException. Ralph On Jul 17, 2013, at 12:21 PM, Nick Williams wrote: > So what about my proposal for renaming and changing i

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Nick Williams
So what about my proposal for renaming and changing inheritance of appender exception. Thoughts? Nick On Jul 17, 2013, at 2:18 PM, Ralph Goers wrote: > I'd throw the appender exception since the database manager is acting as part > of the Appender. > > Ralph > > On Jul 17, 2013, at 11:52 AM,

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Ralph Goers
I think I see something subtle in what you are saying. If your JDBCDatabaseManager can't connect it shouldn't just fail forever. It should be capable of performing retries. Thus, the error might occur when logging an event and then it might establish a new connection for a subsequent event. S

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Ralph Goers
I'd throw the appender exception since the database manager is acting as part of the Appender. Ralph On Jul 17, 2013, at 11:52 AM, Nick Williams wrote: > Okay, so, proposal: I rename AppenderRuntimeException to > AppenderLoggingException and change it to extend LoggingException. Like > Loggin

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Nick Williams
Okay, so, proposal: I rename AppenderRuntimeException to AppenderLoggingException and change it to extend LoggingException. Like LoggingException, it should only be thrown when logging an event fails. Thoughts? That still leaves the question of which exception I should throw when my JDBCDataba

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Ralph Goers
Perhaps AppenderRuntimeException should have extended LoggingException. As you might expect, AppenderRuntimeException is primarily for Appenders to throw as they need to. LoggingExceptions are thrown everywhere else. It is likely that LoggingException is being used in Appenders but those shoul

Re: LoggingException vs. AppenderRuntimeException vs. ConfigurationException

2013-07-17 Thread Gary Gregory
Based on the name, I would hope that ConfigurationException is only thrown when a problem is found reading and processing a config file. I've not looked at this area of Log4j though Gary On Wed, Jul 17, 2013 at 2:23 PM, Nick Williams < [email protected]> wrote: > I'm working on