Silence logger in process?

I build async task in a Mix task a little bit like this:

Task.async(fn -> end)

This work function sometimes uses to print informations, but I can make it silence using, like this:

Task.async(fn -> 

Is there something how I can make also output to not appear? Also maybe sometimes IO.puts ? I want this task to be silent. No logs, no STDOUT. Is this possible?

You can disable logs per process via Logger.disable(self()) (works only with self()). With STDOUT not really, however you can check out how ExUnit.CaptureIO works and maybe copy their solution.