Add logger to X framework