Changed logging methods to return 'this' to allow chaining.