#Recommended patterns to handles logs from pipeline steps?

1 messages ยท Page 1 of 1 (latest)

copper sparrow
#

Is there any recommene patterns to send logs from each stesp of dagger piepline, main goal of this is it collect logs of each step into files?

marble acorn
copper sparrow
#

Yeah I agree ๐Ÿ‘
But In my use case we also need logs to be saved in files in order to show for customers using gitlab artifacts

neat lance
#

I think Buildkit stores its log somewhere (/cc @topaz cairn) ? I'm not sure though it will be super human readable.
I wonder if there's a way to capture the engine stdout into a file

copper sparrow
#

i can think of one possible way is by storing and passing logs file for each steps and returning to the caller as directory and at the end may be orchetrator can save it, but thought that may be there's any out of box support ๐Ÿ™‚

topaz cairn
#

you can configure the Dagger CLI to send data to any OTel-compatible provider with the standard OTEL_ env vars - maybe you could configure a collector that writes to local disk?