diff --git a/ChangeLog b/ChangeLog index cea6dd5..166bd9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-06-05 Thomas Vander Stichele + + * morituri/result/result.py: + Add a Logger base class. + 2009-06-05 Thomas Vander Stichele * configure.ac: diff --git a/morituri/result/result.py b/morituri/result/result.py index 8ca8cea..48ca495 100644 --- a/morituri/result/result.py +++ b/morituri/result/result.py @@ -20,6 +20,10 @@ # You should have received a copy of the GNU General Public License # along with morituri. If not, see . +import time + +from morituri.result import logger + class TrackResult: """ @ivar testcrc: 4-byte CRC for the test read @@ -58,3 +62,22 @@ class RipResult: def __init__(self): self.tracks = [] + +class Logger(object): + """ + I log the result of a rip. + """ + + def log(self, ripResult, epoch=time.time()): + """ + Create a log from the given ripresult. + + @param epoch: when the log file gets generated + @type ripResult: L{RipResult} + + @rtype: str + """ + raise NotImplementedError + +def getLogger(): + return logger.MorituriLogger()