Add cls pointer to the logger