Change decorator example in module documentation to setup logging

Closes #10584.