if DB is down, i want to use a RollingFileAppender instead


[ Antworten ] [ Ihre Antwort ] [ Forum www.mannhaupt.com ]

Abgeschickt von christoph am 04 Juli, 2006 um 11:24:05

hi there,

i want to change my loggingappender to a JDBCAppender, and found this superb site! great job! it works very good!

what i'm now searching for, is a possibility to log into a file, if the database is not available... i know that there is a way to do so in the catch-block, when the "java.sql.SQLException: [Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und es wurde kein Standardtreiber angegeben"-Exception is throwen... but is there a possibility to define an alternative way of the logging... such as define in the propertiesfile, that if the DB is not available, use a FileAppender or stuff like that?!?!

or what's that Strandardtreiber-thing, that is mentioned in the exception message?! could that help?

thanx in advance,
christoph



Antworten:



Ihre Antwort

Name:
E-Mail:

Subject:

Text:

Optionale URL:
Link Titel:
Optionale Bild-URL:


[ Antworten ] [ Ihre Antwort ] [ Forum www.mannhaupt.com ]