Added the logger function to common.h