Add missing "log" statement to examples

The examples were missing the "log" keyword. Added them.