File: alog-log_request.ads.html

package info (click to toggle)
libalog 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,056 kB
  • ctags: 465
  • sloc: ada: 5,203; makefile: 166; sql: 9; sh: 2
file content (266 lines) | stat: -rw-r--r-- 18,339 bytes parent folder | download
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript"/>

  <title>
    Package: Alog.Log_Request
  </title>
  <link rel='stylesheet' href='support/docgen.css' type='text/css'/>
  <link rel='stylesheet' href='support/tags.css' type='text/css'/>
  <script src='support/docgen.js' type='text/javascript' charset='utf-8'></script>
</head>
<body onload="onloadDoc();">

<div id='leftSide'>
  <div id='leftSideInside'>
  <div id='header'>
    <h2 class="button">Documentation</h2>
    <a href='index.html'><div class="button2">Table of Contents</div></a>

    <a href='tree.html'><div class="button2">Class Inheritance Tree</div></a>

  </div>

  <div id='navigation'>
    <h2 class="button">Navigation</h2>
    <a href='#Description'><div class="button2">Description</div></a>
    <a href='#Classes'><div class="button2">Classes</div></a>
    <a href='#Methods'><div class="button2">Subprograms &amp; Entries</div></a>
  </div><!-- navigation -->
  </div>
</div> <!-- leftSide -->

<div class='default' id='rightSide'>
 <div id='rightSideInside'>
 <div id='Index'>
  <h2>Index</h2>
  <script type="text/javascript">
    var names = new Array (
new Array ('Instance', 'alog-log_request.ads:33:9', 'class-spec'),
new Array ('Create', 'alog-log_request.ads:37:13', 'subp-spec'),
new Array ('Get_<wbr/>Caller_<wbr/>ID', 'alog-log_request.ads:45:13', 'subp-spec'),
new Array ('Get_<wbr/>Source', 'alog-log_request.ads:48:13', 'subp-spec'),
new Array ('Get_<wbr/>Log_<wbr/>Level', 'alog-log_request.ads:51:13', 'subp-spec'),
new Array ('Get_<wbr/>Message', 'alog-log_request.ads:54:13', 'subp-spec'),
      new Array ('dummy', '', ''));
    printIndexList (names);
  </script>
  <noscript>
    <ul>
      <li class='class-spec'><a href="#alog-log_request.ads:33:9">Instance</a></li>
      <li class='subp-spec'><a href="#alog-log_request.ads:37:13">Create</a></li>
      <li class='subp-spec'><a href="#alog-log_request.ads:45:13">Get_<wbr/>Caller_<wbr/>ID</a></li>
      <li class='subp-spec'><a href="#alog-log_request.ads:48:13">Get_<wbr/>Source</a></li>
      <li class='subp-spec'><a href="#alog-log_request.ads:51:13">Get_<wbr/>Log_<wbr/>Level</a></li>
      <li class='subp-spec'><a href="#alog-log_request.ads:54:13">Get_<wbr/>Message</a></li>
    </ul>
  </noscript>
 </div>
 </div>
</div>

<div class='default' id='documentation'>
  <div class='title'>
    Package:
<span class="droplink"><i>Alog.Log_Request</i><ul>
  <li><a href="src_alog-log_request.ads.html">Goto spec source</a></li>
</ul></span>
  </div>
  <div class='subprograms'>
    <h1><a name='Description' id='Description'></a>Description</h1>
    <div class="class">
    <div class='details'><pre><span class="keyword">package</span> <span class="name"><b>Alog.Log_Request</b></span> <span class="keyword">is</span></pre></div>
    <div class='comment'>Log request type. Log request objects are used for asynchronous logging and&#10;hold all relevant information of a log request.&#10;</div>
    </div>
  </div>


  <div class='subprograms'>
    <h1><a name='Classes' id='Classes'></a>Classes</h1>
    <div class="class">
      <h3><a name='alog-log_request.ads:33:9' id='alog-log_request.ads:33:9'></a>
<span class="droplink">Instance<ul>
  <li><a href="src_alog-log_request.ads.html#l33">Goto declaration in source</a></li>
  <li><a href="src_alog-log_request.ads.html#l59">Goto full declaration in source</a></li>
</ul></span>
      </h3>
      <div class='details'><pre><span class="keyword">type</span> <span class="name"><b>Instance</b></span> <span class="keyword">is</span> <span class="keyword">tagged</span> <span class="keyword">private</span>;</pre></div>
      <div class='profile'>
        <div>
          <h4>Primitive operations:</h4>
              <div><span class="droplink">Create<ul><li><a href="alog-log_request.ads.html#alog-log_request.ads:37:13" title="To API doc">To API doc</a></li><li><a href="src_alog-log_request.ads.html#l37" title="To spec">To spec</a></li></ul></span></div>
              <div><span class="droplink">Get_Caller_ID<ul><li><a href="alog-log_request.ads.html#alog-log_request.ads:45:13" title="To API doc">To API doc</a></li><li><a href="src_alog-log_request.ads.html#l45" title="To spec">To spec</a></li></ul></span></div>
              <div><span class="droplink">Get_Log_Level<ul><li><a href="alog-log_request.ads.html#alog-log_request.ads:51:13" title="To API doc">To API doc</a></li><li><a href="src_alog-log_request.ads.html#l51" title="To spec">To spec</a></li></ul></span></div>
              <div><span class="droplink">Get_Message<ul><li><a href="alog-log_request.ads.html#alog-log_request.ads:54:13" title="To API doc">To API doc</a></li><li><a href="src_alog-log_request.ads.html#l54" title="To spec">To spec</a></li></ul></span></div>
              <div><span class="droplink">Get_Source<ul><li><a href="alog-log_request.ads.html#alog-log_request.ads:48:13" title="To API doc">To API doc</a></li><li><a href="src_alog-log_request.ads.html#l48" title="To spec">To spec</a></li></ul></span></div>
        </div>
      </div>
      <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l33" title="alog-log_request.ads:33:9">alog-log_request.ads:33:9</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:178:48 (reference)</i></div>
            <div><i>alog-active_logger.adb:261:46 (reference)</i></div>
            <div><i>alog-facilities.adb:114:30 (reference)</i></div>
            <div><i><a href="src_alog-facilities.ads.html#l68" title="alog-facilities.ads:68:30">alog-facilities.ads:68:30</a> (reference)</i></div>
            <div><i>alog-log_request.adb:35:14 (reference)</i></div>
            <div><i>alog-log_request.adb:38:14 (reference)</i></div>
            <div><i>alog-log_request.adb:46:38 (reference)</i></div>
            <div><i>alog-log_request.adb:53:38 (reference)</i></div>
            <div><i>alog-log_request.adb:60:36 (reference)</i></div>
            <div><i>alog-log_request.adb:67:35 (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l42" title="alog-log_request.ads:42:14">alog-log_request.ads:42:14</a> (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l45" title="alog-log_request.ads:45:38">alog-log_request.ads:45:38</a> (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l48" title="alog-log_request.ads:48:35">alog-log_request.ads:48:35</a> (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l51" title="alog-log_request.ads:51:38">alog-log_request.ads:51:38</a> (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l54" title="alog-log_request.ads:54:36">alog-log_request.ads:54:36</a> (reference)</i></div>
            <div><i><a href="src_alog-log_request.ads.html#l59" title="alog-log_request.ads:59:9">alog-log_request.ads:59:9</a> (full declaration)</i></div>
            <div><i>alog-logger.adb:221:45 (reference)</i></div>
            <div><i>alog-protected_containers.adb:68:44 (reference)</i></div>
            <div><i>alog-protected_containers.adb:96:44 (reference)</i></div>
            <div><i><a href="src_alog-protected_containers.ads.html#l43" title="alog-protected_containers.ads:43:44">alog-protected_containers.ads:43:44</a> (reference)</i></div>
            <div><i><a href="src_alog-protected_containers.ads.html#l46" title="alog-protected_containers.ads:46:44">alog-protected_containers.ads:46:44</a> (reference)</i></div>
            <div><i><a href="src_alog-protected_containers.ads.html#l125" title="alog-protected_containers.ads:125:30">alog-protected_containers.ads:125:30</a> (reference)</i></div>
            <div><i><a href="src_alog-protected_containers.ads.html#l129" title="alog-protected_containers.ads:129:37">alog-protected_containers.ads:129:37</a> (reference)</i></div>
      </div>
      <div class='comment'>A log request contains all related information to log asynchronously&#10;(Caller identification, loglevel and message).&#10;</div>
    </div>
  </div>




    <div class='subprograms'>
      <h1><a name='Methods' id='Methods'></a>Subprograms &amp; Entries</h1>
      <div class="class">
        <h3>
          <a name='alog-log_request.ads:37:13' id='alog-log_request.ads:37:13'></a>
<span class="droplink">Create<ul>
  <li><a href="src_alog-log_request.ads.html#l37">Goto spec in source</a></li>
</ul></span>
        </h3>
        <div class='details'><pre><span class="keyword">function</span> <span class="name"><b>Create</b></span>     <table><tr><td>(</td><td><span class="name"><a name="alog-log_request.ads:38:7"></a>ID</span></td><td>: Task_Id   := Current_Task;</td></tr><tr><td></td><td><span class="name"><a name="alog-log_request.ads:39:7"></a>Source</span></td><td>: String    := <span class="string">""</span>;</td></tr><tr><td></td><td><span class="name"><a name="alog-log_request.ads:40:7"></a>Level</span></td><td>: <a href="alog.ads.html#alog.ads:32:9" title="defined at alog.ads:32:9">Log_Level</a> := Debug;</td></tr><tr><td></td><td><span class="name"><a name="alog-log_request.ads:41:7"></a>Message</span></td><td>: String)</td></tr></table><span class="keyword">return</span> <a href="alog-log_request.ads.html#alog-log_request.ads:33:9" title="defined at alog-log_request.ads:33:9">Instance</a>;</pre></div>
        <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l37" title="alog-log_request.ads:37:13">alog-log_request.ads:37:13</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:179:27 (reference)</i></div>
            <div><i>alog-log_request.adb:30:13 (body)</i></div>
            <div><i>alog-log_request.adb:42:8 (label)</i></div>
            <div><i>alog-logger.adb:222:24 (reference)</i></div>
        </div>
        <div class='profile'>
          <h4>Called by:</h4>
            <div><i><a href="alog-active_logger.ads.html#alog-active_logger.ads:98:14" title="defined at alog-active_logger.ads:98:14">Alog.Active_Logger.Log_Message</a> defined at <a href="src_alog-active_logger.ads.html#l98" title="alog-active_logger.ads:98:14">alog-active_logger.ads:98:14</a></i></div>
            <div><i>Alog.Logger.Log_Message.Do_Log defined at alog-logger.adb:216:17</i></div>
        </div>
        <div class='profile'>
          <h4>Calls:</h4>
            <div><i>Current_Task defined at a-taside.ads:53:13</i></div>
            <div><i>To_Unbounded_String defined at a-strunb.ads:57:13</i></div>
        </div>
        <div class='comment'>Create a log request object from the specified parameters.&#10;</div>
      </div>
      <div class="class">
        <h3>
          <a name='alog-log_request.ads:45:13' id='alog-log_request.ads:45:13'></a>
<span class="droplink">Get_Caller_ID<ul>
  <li><a href="src_alog-log_request.ads.html#l45">Goto spec in source</a></li>
</ul></span>
        </h3>
        <div class='details'><pre><span class="keyword">function</span> <span class="name"><b>Get_Caller_ID</b></span> <table><tr><td>(</td><td><span class="name"><a name="alog-log_request.ads:45:28"></a>Request</span></td><td>: <a href="alog-log_request.ads.html#alog-log_request.ads:33:9" title="defined at alog-log_request.ads:33:9">Instance</a>)</td></tr></table><span class="keyword">return</span> Task_Id;</pre></div>
        <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l45" title="alog-log_request.ads:45:13">alog-log_request.ads:45:13</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:270:45 (reference)</i></div>
            <div><i>alog-log_request.adb:46:13 (body)</i></div>
            <div><i>alog-log_request.adb:49:8 (label)</i></div>
        </div>
        <div class='profile'>
          <h4>Called by:</h4>
            <div><i>Alog.Active_Logger.Logging_Task defined at <a href="src_alog-active_logger.ads.html#l149" title="alog-active_logger.ads:149:14">alog-active_logger.ads:149:14</a></i></div>
        </div>
        <div class='comment'>Return the caller ID of the request object.&#10;</div>
      </div>
      <div class="class">
        <h3>
          <a name='alog-log_request.ads:48:13' id='alog-log_request.ads:48:13'></a>
<span class="droplink">Get_Source<ul>
  <li><a href="src_alog-log_request.ads.html#l48">Goto spec in source</a></li>
</ul></span>
        </h3>
        <div class='details'><pre><span class="keyword">function</span> <span class="name"><b>Get_Source</b></span> <table><tr><td>(</td><td><span class="name"><a name="alog-log_request.ads:48:25"></a>Request</span></td><td>: <a href="alog-log_request.ads.html#alog-log_request.ads:33:9" title="defined at alog-log_request.ads:33:9">Instance</a>)</td></tr></table><span class="keyword">return</span> String;</pre></div>
        <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l48" title="alog-log_request.ads:48:13">alog-log_request.ads:48:13</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:267:45 (reference)</i></div>
            <div><i>alog-facilities.adb:119:47 (reference)</i></div>
            <div><i>alog-log_request.adb:67:13 (body)</i></div>
            <div><i>alog-log_request.adb:70:8 (label)</i></div>
        </div>
        <div class='profile'>
          <h4>Called by:</h4>
            <div><i>Alog.Active_Logger.Logging_Task defined at <a href="src_alog-active_logger.ads.html#l149" title="alog-active_logger.ads:149:14">alog-active_logger.ads:149:14</a></i></div>
            <div><i><a href="alog-facilities.ads.html#alog-facilities.ads:66:14" title="defined at alog-facilities.ads:66:14">Alog.Facilities.Process</a> defined at <a href="src_alog-facilities.ads.html#l66" title="alog-facilities.ads:66:14">alog-facilities.ads:66:14</a></i></div>
        </div>
        <div class='profile'>
          <h4>Calls:</h4>
            <div><i>To_String defined at a-strunb.ads:63:13</i></div>
        </div>
        <div class='comment'>Return the source of the request object.&#10;</div>
      </div>
      <div class="class">
        <h3>
          <a name='alog-log_request.ads:51:13' id='alog-log_request.ads:51:13'></a>
<span class="droplink">Get_Log_Level<ul>
  <li><a href="src_alog-log_request.ads.html#l51">Goto spec in source</a></li>
</ul></span>
        </h3>
        <div class='details'><pre><span class="keyword">function</span> <span class="name"><b>Get_Log_Level</b></span> <table><tr><td>(</td><td><span class="name"><a name="alog-log_request.ads:51:28"></a>Request</span></td><td>: <a href="alog-log_request.ads.html#alog-log_request.ads:33:9" title="defined at alog-log_request.ads:33:9">Instance</a>)</td></tr></table><span class="keyword">return</span> <a href="alog.ads.html#alog.ads:32:9" title="defined at alog.ads:32:9">Log_Level</a>;</pre></div>
        <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l51" title="alog-log_request.ads:51:13">alog-log_request.ads:51:13</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:268:45 (reference)</i></div>
            <div><i>alog-facilities.adb:117:47 (reference)</i></div>
            <div><i>alog-log_request.adb:53:13 (body)</i></div>
            <div><i>alog-log_request.adb:56:8 (label)</i></div>
        </div>
        <div class='profile'>
          <h4>Called by:</h4>
            <div><i>Alog.Active_Logger.Logging_Task defined at <a href="src_alog-active_logger.ads.html#l149" title="alog-active_logger.ads:149:14">alog-active_logger.ads:149:14</a></i></div>
            <div><i><a href="alog-facilities.ads.html#alog-facilities.ads:66:14" title="defined at alog-facilities.ads:66:14">Alog.Facilities.Process</a> defined at <a href="src_alog-facilities.ads.html#l66" title="alog-facilities.ads:66:14">alog-facilities.ads:66:14</a></i></div>
        </div>
        <div class='comment'>Return the loglevel of the request object.&#10;</div>
      </div>
      <div class="class">
        <h3>
          <a name='alog-log_request.ads:54:13' id='alog-log_request.ads:54:13'></a>
<span class="droplink">Get_Message<ul>
  <li><a href="src_alog-log_request.ads.html#l54">Goto spec in source</a></li>
</ul></span>
        </h3>
        <div class='details'><pre><span class="keyword">function</span> <span class="name"><b>Get_Message</b></span> <table><tr><td>(</td><td><span class="name"><a name="alog-log_request.ads:54:26"></a>Request</span></td><td>: <a href="alog-log_request.ads.html#alog-log_request.ads:33:9" title="defined at alog-log_request.ads:33:9">Instance</a>)</td></tr></table><span class="keyword">return</span> String;</pre></div>
        <div class='profile'>
          <h4>References:</h4>
            <div><i><a href="src_alog-log_request.ads.html#l54" title="alog-log_request.ads:54:13">alog-log_request.ads:54:13</a> (declaration)</i></div>
            <div><i>alog-active_logger.adb:269:45 (reference)</i></div>
            <div><i>alog-facilities.adb:118:47 (reference)</i></div>
            <div><i>alog-log_request.adb:60:13 (body)</i></div>
            <div><i>alog-log_request.adb:63:8 (label)</i></div>
        </div>
        <div class='profile'>
          <h4>Called by:</h4>
            <div><i>Alog.Active_Logger.Logging_Task defined at <a href="src_alog-active_logger.ads.html#l149" title="alog-active_logger.ads:149:14">alog-active_logger.ads:149:14</a></i></div>
            <div><i><a href="alog-facilities.ads.html#alog-facilities.ads:66:14" title="defined at alog-facilities.ads:66:14">Alog.Facilities.Process</a> defined at <a href="src_alog-facilities.ads.html#l66" title="alog-facilities.ads:66:14">alog-facilities.ads:66:14</a></i></div>
        </div>
        <div class='profile'>
          <h4>Calls:</h4>
            <div><i>To_String defined at a-strunb.ads:63:13</i></div>
        </div>
        <div class='comment'>Return the log message of the request object.&#10;</div>
      </div>
    </div>
</div> <!-- documentation -->

</body>
</html>