prev <<
Logging
>> next
When to use $log->debug
During development and live debugging, I prefer
warn
.
I think littering your code with
$log->debug( "Finished building tree" );
distracts from the program flow.
Yes, this could be used for documentation (or comments),
but the code should speak for itself (unless it's very complex, but then a few log messages won't be enough)