Removed $log - you can't use it in config functions