log-file and container logs
angelbarrera92 opened this issue · 3 comments
Hi!!
I do not know if this is an issue or a feature.
I see this tool provides the possibility to write its logs to a file using the --log-file
flag and it works. But, the container logs are always printed in stdout as this line indicates:
https://github.com/boz/kail/blob/master/cmd/kail/main.go#L301
Is this a bug? Should container logs be written in the same file?
Thanks
That flag is for kail
logs, not for the container logs. Sorry, that could be made more clear.
I'm open to adding a flag for setting an output file. Alternatively, you can use shell redirection.
I'll try with shell redirection first.
If it does not work, i can implement a new flag to write container logs to another file ;)
Thanks @boz
Hi @boz
I tried as you described, shell redirection. So no need to implement the flag
(sorry the delay, my backlog is plenty of things). Here you can find an example:
https://github.com/angelbarrera92/loki-poc/blob/v2-kail/kail-deployment.yml
Thanks for your work.
Feel free to ask whatever you want