Adding a way to prune logs