logger implementation using custom api

This is the change to add logger implementation using freedom 0.5.0 custom api support. 
I think you want this to return a Logger? By returning any you're missing out on type safety we hope to get from TypeScript :-)