Next / Previous / Contents / Shipman's homepage

8. Imports

We need the standard Python sys module to access the standard error stream, and the re module for regular expression operations.

logscan.py
#================================================================
# Imports
#----------------------------------------------------------------

import sys
import re

The Log class inherits from the Singleton class described in Section 5, “The Singleton base class: A classic design pattern”.

logscan.py
from singleton import *