logging: add support for APM2 logfiles