import logging module. added TestPlugin class.
use cls instead of Plugin class.