fname is a string "%s-%s.log", with '%s' replaced by timestamp and absolute value of the return value of the function id with argument self, respectively.
fname = "%s-%s.log" % ( timestamp , abs ( id ( self ) ) )