better LOGGING variable support