Change decorator example to setup logging. Closes #10584.
Merge pull request #10589 from cachedout/#10584

Change decorator example in module documentation to setup logging