-
Notifications
You must be signed in to change notification settings - Fork 3
/
event_log_facility_i.e
executable file
·52 lines (38 loc) · 1.16 KB
/
event_log_facility_i.e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
note
component: "Eiffel Object Modelling Framework"
description: "Event logging facility Implementation"
keywords: "logging"
author: "Thomas Beale"
support: "Ocean Informatics <[email protected]>"
copyright: "Copyright (c) 2005 Ocean Informatics Pty Ltd"
license: "Apache 2.0 License <http://www.apache.org/licenses/LICENSE-2.0.html>"
file: "$URL$"
revision: "$LastChangedRevision$"
last_change: "$LastChangedDate$"
deferred class EVENT_LOG_FACILITY_I
inherit
EVENT_SEVERITY_CONSTANTS
feature -- Initialisation
make(a_facility_interface:like facility_interface)
require
Args_valid: a_facility_interface /= Void
do
facility_interface := a_facility_interface
exists := True
ensure
Facility_interface_exists: facility_interface /= Void
end
feature -- Access
facility_interface: EVENT_LOG_FACILITY
feature -- Status Report
exists: BOOLEAN
-- True if event log was successfully created
feature {EVENT_LOG_FACILITY} -- Modify
append_event(severity:INTEGER; source,msg:STRING)
require
is_valid_severity(severity)
deferred
end
invariant
Interface_exists: facility_interface /= Void
end