We need the standard Python sys module to
access the standard error stream, and the re
module for regular expression operations.
#================================================================ # Imports #---------------------------------------------------------------- import sys import re
The Log class inherits from the singleton class
described in Section 45, “The singleton class: A classic design pattern”.
from singleton import *