Support debug logging in batch files.