You can log console messages in your backend code

If I log something on the backend will it appear on client-side browser?
I’m thinking about logging ‘confidential’ information but that I’ll be able to only see on the site monitoring. Is it safe?