Log is not available outside of phpDocumentor, so check it exists

Fall back to a magic number if the class doesn't exist.
Merge pull request #6 from joncave/log-optional

Log is not available outside of phpDocumentor, so check it exists