How to collect raw log into artifact?

I was wondering if it is possible to collect the raw log file into an artifact?

Best regards,

I’m curious how to do this also.

One obvious workaround that I’m using is instead of calling cmake/make/etc from the script lines in the .gitlab-ci.yaml. Instead put those lines in a larger script, call that from the yaml, and redirect that output to a log file. Then add that log file to the artifacts in your yaml. This does miss all the logging that occurs as part of an image step/etc.

It has crossed my mind but I want the whole raw log because there more there that I like.