Add Logging to a Utility Function
Wrap a pure function with a decorator that logs its input and output.
We'll cover the following...
We'll cover the following...
Problem statement
You’ve got a basic utility function that calculates the square of a number. It’s used across your app, but you want to track what values it receives—and what it returns—without modifying the ...