|
From: Jeff G. <jg...@we...> - 2007-09-25 05:49:52
|
For production apps running on servers, it would be useful to associate wrapper actions (such as restart) with some kind of notification, e.g. an email to an administrator. Until I noticed that the wrapper does not use some full-featured logging package like log4j, I thought perhaps I could add a log4j SmtpAppender and triggering-event filter to do this. As the simplified logging facilities in the wrapper are not really aimed at this kind of use, the next idea was to do this email logging in the application, probably by replacing the WrapperSimpleApp class currently being used with a similar one which does the logging from the WrapperListener methods. This main reason for using SmtpAppender to take care of the email is to minimize the code alteration requirements in the app, which already contains facilities for emailing, but might not be able to execute them if badly enough in need of restart. Are there other suggestions? Jeff |