Add support for user-defined global log directives