avatar Bite 192. Some logging practice

You are to flesh out the log_it() function so that it will log to any LOG LEVEL and with any message passed to it. You will need to create globalvariables for each of the log levels, since those will be imported into the tests for testing.

LOG LEVELS:

  • DEBUG
  • INFO
  • WARNING
  • ERROR
  • CRITICAL

By default, all log messages are sent to the root logger, but for this bite you will have to give it the name of pybites_logger. Here is a Python logging guide for reference.

Login and get coding
go back Beginner level
Bitecoin 2X

259 out of 274 users completed this Bite.
Will you be the 260th person to crack this Bite?
Resolution time: ~46 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 5.25 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help