I have few queries regarding how to get dagger application logs to file, so that we can ship it to centralized logging server
i see one way is to use sdk but i am looking more into out of box configuration where docker container running dagger engine pickup not only stderr logs from but also stdout logs, right now i only see stderr logs engine logs from container
appreciate the help
#Exec stdout logs in docker container log file
1 messages · Page 1 of 1 (latest)
👋 there's noting for this automatically currently. One thing that you can do is to send the application stdout and stderr to a file in your Dagger pipeline and then configure a log collector that watches those files and sends everything to your centralized place
https://pkg.go.dev/dagger.io/dagger#ContainerWithExecOpts with_exec already allows sending the log outputs to a file automatically
will it be visible at docker container level(dagger engine) in host machine? because we have same settings, but i cannot see output logs using docker logs engine-container-name
if not then then i have to save file in where we are running/calling dagger client api and save these logs