Add redirect logging func