azure-service-operator icon indicating copy to clipboard operation
azure-service-operator copied to clipboard

Bug: Log redirection for generator does not work

Open theunrepentantgeek opened this issue 4 years ago • 2 comments

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

theunrepentantgeek avatar Oct 11 '21 00:10 theunrepentantgeek

Closing/reopening to test tagging action

theunrepentantgeek avatar Oct 11 '21 00:10 theunrepentantgeek

This issue has been automatically marked as stale because it has not had activity in 60 days.

stale[bot] avatar Apr 16 '22 06:04 stale[bot]

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.

theunrepentantgeek avatar Jun 28 '23 03:06 theunrepentantgeek