Example of logging via direct function calls.