Doubts about creating custom logs

Hello, I want to create custom logs from the info data that is returned in the step of my environment, I did some research and it wasn’t very trivial how to do it, can anyone help me?