Added cross-platform logging