Using logging module for logs