Basic example using the logging module.
Set logging configuration.
level (str, optional): log level to use