How to disable logging of {env.name} in github action console?

You can’t. What you can do is to mask the value like it automatically happens for secrets.