Update : add function for logs