Bug fixes to reduce logging-related crashes

* Provide a method for plugins to report failure to initialise
* Check plugins initialised properly before adding to list of logging
backends
* Check the logger is available before trying to log a message
(might cause bugs if errors are logged very early in initialisation)
This commit is contained in:
2011-08-20 11:34:29 +01:00
parent fc33112097
commit 2781b63b68
4 changed files with 47 additions and 7 deletions

View File

@@ -30,5 +30,8 @@ class SihnonFramework_Exception_CacheObjectNotFound extends SihnonFramework_E
class SihnonFramework_Exception_InvalidPluginName extends SihnonFramework_Exception {};
class SihnonFramework_Exception_LogException extends SihnonFramework_Exception {};
class SihnonFramework_Exception_LogFileNotWriteable extends SihnonFramework_Exception_LogException {};
class SihnonFramework_Exception_InvalidLog extends SihnonFramework_Exception_LogException {};
?>