kopf icon indicating copy to clipboard operation
kopf copied to clipboard

Allow logging to a file from the CLI

Open brianthelion opened this issue 2 years ago • 0 comments

Problem

Shell-based redirection isn't always an option when one needs to log kopf output to the filesystem.

Proposal

kopf run should provide an option to log to a file from the CLI.

Alternatively, kopf could provide a more comprehensive API for logging configuration, so that such configuration could be performed in an @kopf.startup handler.

Code

kopf run ... --log-file=controller.log

Additional information

No response

brianthelion avatar Dec 07 '22 16:12 brianthelion