June 2019
Beginner to intermediate
770 pages
19h 24m
English
A debugging log is usually enabled by a developer to monitor a program under development. It's often narrowly focused on specific features, modules, or classes. Consequently, we'll often enable and disable loggers by name. A configuration file might set the level of a few loggers to DEBUG, leaving others at INFO, or possibly even a WARNING level.
We'll often design debugging information into our classes. Indeed, we might use the debugging ability as a specific quality feature for a class design. This may mean introducing a rich set of logging requests. For example, we might have a complex calculation for which the class state is essential information as follows:
from Chapter_16.ch16_ex1 import LoggedClassclass BettingStrategy(LoggedClass): ...
Read now
Unlock full access