src: new logging routines