logger implementation using custom api

This is the change to add logger implementation using freedom 0.5.0 custom api support. 
I'm pretty sure you can remove these empty blocks. Would save a few lines.