File: logging_service-client.ads

package info (click to toggle)
liblog4ada 1.3.1.b6dafb49-15
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 576 kB
  • sloc: ada: 3,168; makefile: 31; sh: 14
file content (63 lines) | stat: -rw-r--r-- 1,779 bytes parent folder | download | duplicates (5)
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
52
53
54
55
56
57
58
59
60
61
62
63

--  wsdl2aws SOAP Generator v2.3.0
--
--  AWS 3.1.0w - SOAP 1.5.0
--  This file was generated on Thursday 27 June 2013 at 17:35:46
--
--  $ wsdl2aws -cb -types Log4Ada ../wsdl/logging.wsdl

pragma Warnings (Off);

with Ada.Calendar;

with SOAP.Types;
pragma Elaborate_All (SOAP);
pragma Elaborate_All (SOAP.Types);

with Logging_Service.Types;

package Logging_Service.Client is

   use Logging_Service.Types;

   Connection : constant AWS.Client.HTTP_Connection;

   procedure Create_File_Log
     (Name_ID  : String;
      Endpoint : String := Logging_Service.URL;
      Timeouts : AWS.Client.Timeouts_Values := Logging_Service.Timeouts);
   procedure Create_File_Log
     (Connection : AWS.Client.HTTP_Connection;
      Name_ID    : String);
   --  Raises SOAP.SOAP_Error if the procedure fails

   procedure Close_File_Log
     (Name_ID  : String;
      Endpoint : String := Logging_Service.URL;
      Timeouts : AWS.Client.Timeouts_Values := Logging_Service.Timeouts);
   procedure Close_File_Log
     (Connection : AWS.Client.HTTP_Connection;
      Name_ID    : String);
   --  Raises SOAP.SOAP_Error if the procedure fails

   procedure Append_Log
     (Name_ID  : String;
      Message  : String;
      Level    : Level_Type_Type;
      Endpoint : String := Logging_Service.URL;
      Timeouts : AWS.Client.Timeouts_Values := Logging_Service.Timeouts);
   procedure Append_Log
     (Connection : AWS.Client.HTTP_Connection;
      Name_ID    : String;
      Message    : String;
      Level      : Level_Type_Type);
   --  Raises SOAP.SOAP_Error if the procedure fails

private

   Connection : constant AWS.Client.HTTP_Connection :=
                  AWS.Client.Create
                    (URL,
                     Timeouts   => Timeouts);

end Logging_Service.Client;