New logging method