I have a Craft Plugin that is a logging library I want to use in other plugins I develop, but I don't want it to be a dependancy in these other plugins. Is there a nice, space efficient way in Craft to do something like below? I don't want to have to wrap every call in an if statement:
# If WatchTower isn't installed... don't explode please!!! @craft()->watchTowerDB->log($params)
My plugin seems to stop processing and redirect to the current page if it isn't installed. Thanks!