Add logger to debug