azure-service-operator
azure-service-operator copied to clipboard
Bug: Log redirection for generator does not work
Describe the bug
Attempting to redirect the log output from generator to a file does not work.
To Reproduce Steps to reproduce the behavior:
.\generator.exe -v 3 --log_file log.txt gen-types .\azure-arm.yaml
Expected behavior
Expectation: all log lines written into log.txt
Actual: log.txt only contains 19 lines, all errors relating to invalid regex expressions
Closing/reopening to test tagging action
This issue has been automatically marked as stale because it has not had activity in 60 days.
Closing as log redirection now works.
With the move to Zerolgr in #2964, we no longer have any commandline flags to worry about.
Normal output redirection works fine, though it's important to note that we log to stderr, not stdout.