Moved logger to source file for things specific to platform