Sep 5, 2024
Actually logging to the console (or to stdout) is a typical thing to do in production environment if your application is containerized.
That being said, I agree with your sentiment about logging. I guess in a purely functional paradigm, it's a side effect. Regardless, I don't think you should have to be in some equivalent of main() to call a function to log activity. That just sounds painful.