Added logging level methods to AsyncPeriodicWork.

This will allow users to override the two methods that return the logging levels. I have seen some plugins having the same class with the same name and functions, but with a different logging level. Now such plugins can just override each of these methods and change the logging level. This will reduce the SPAM messages in the console for plugins using this class.