Log a warning

Report a typo

Initialize a logger that will output the following message to the console: Your application stopped working. Trying to restart!

Use the format attribute to output a log in the following form: {levelname}: {message}.

Sample Input 1:


Sample Output 1:


WARNING: Your application stopped working. Trying to restart!
Write a program in Python 3
# initialize your logger here
___

Create a free account to access the full topic