Add logging helper
Define log level
Add pending storage test