You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the Logger class as logging package to support logging with level colors.
Colors should be implemented as terminal escape sequences in the logging.Color(object) class.
Log level names and their numeric values should be implemented in the logging.Level(object) class.
Level
Level Value
Color
Terminal Escape Sequence
Level.DEBUG
10
Color.MAGENTA
\033[95m
Level.LOWINFO
15
Color.BLUE
\033[94m
Level.INFO
20
Color.GREEN
\033[92m
Level.WARNING
30
Color.YELLOW
\033[93m
Level.ERROR
40
Color.RED
\033[91m
The text was updated successfully, but these errors were encountered:
Implement the
Logger
class aslogging
package to support logging with level colors.Colors should be implemented as terminal escape sequences in the
logging.Color(object)
class.Log level names and their numeric values should be implemented in the
logging.Level(object)
class.Level.DEBUG
10
Color.MAGENTA
\033[95m
Level.LOWINFO
15
Color.BLUE
\033[94m
Level.INFO
20
Color.GREEN
\033[92m
Level.WARNING
30
Color.YELLOW
\033[93m
Level.ERROR
40
Color.RED
\033[91m
The text was updated successfully, but these errors were encountered: