Configure or reconfigure the log directory for file-based logging.Call this after setting UNIFY_LOG_DIR if the env var was set
after this module was imported.Arguments:
log_dir - Explicit log directory path. If None, reads from
Returns:The configured log directory Path, or None if disabled.