Oberon || Library || Module Index || Search Engine || Definition || Module
TYPE Event = POINTER TO EventRec; TYPE EventRec = RECORD (Events.EventRec) request: FTPRequests.Request; response: FTPResponses.Response; errors: RelatedEvents.Object; END;
PROCEDURE Log(session: FTPSessions.Session; request: FTPRequests.Request; response: FTPResponses.Response);
PROCEDURE GetEventType(session: FTPSessions.Session; VAR eventType: Events.EventType);
FTP command processing units are expected to call Log for session after returning response on request. All error events found related to session (see RelatedEvents) will be removed.
GetEventType returns an event type for session that is used by Log to distribute logging events to all interested parties.
Note, however, that not all error events indicate real error situations as error events may result from harmless tests. FTPUnixFileSystems, for example, checks a given filename for existance and for being a symbolic link (see FTPUnixPaths) before opening it for writing. This causes most STOR operations to be logged together with an error event while a success indication might have returned to the FTP client.
Oberon || Library || Module Index || Search Engine || Definition || Module