Adding a logger for PCA