Allow user-specified global log entries

I wanted to be able to specify different global log directives, looking them up from a variable where appropriate.