refactored LogDecorator and added test
tweeks