Add support for logging via niilib