Refactoring your plugin using a three-layer pattern Logging error from your customization Unit testing your plugin business logic