summaryrefslogtreecommitdiff
path: root/doc/librpm/html/group__rpmlog.html
blob: 0a803cc0ab7c24beecd46070f4703129a5636f4c (plain)
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>rpm: Logging API.</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">rpm&#160;<span id="projectnumber">4.9.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Logging API.</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__rpmlog.html#gacd0c489c508a24a73b39565aaa2658c3">rpmlogLvl_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">RPM Log levels.  <a href="#ga083ff85cda4655dbd0c81d2ff502795e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__rpmlog.html#ga26fbc175050abb3fb59279061bd9cc6d">rpmlogFac_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga0f11f018ccc21124be255e82e656a7c5">rpmlogFac</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">facility codes  <a href="#ga0f11f018ccc21124be255e82e656a7c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct rpmlogRec_s *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a> )(<a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a> rec, <a class="el" href="rpmlog_8h.html#ad8d2f285d008965c542686e5335a9120">rpmlogCallbackData</a> data)</td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#gacd0c489c508a24a73b39565aaa2658c3">rpmlogLvl_e</a> { <br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3acc41f4f3e098ee5c7ae0f079cd6b7715">RPMLOG_EMERG</a> =  0, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3ae83b7c915d88e48370e5073b102ee091">RPMLOG_ALERT</a> =  1, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3abb8a8a27c1d6705f10aadf7ae23ea059">RPMLOG_CRIT</a> =  2, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3a29cea4e65e8a30e907609e83187b439d">RPMLOG_ERR</a> =  3, 
<br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3a4a8bda88dc45c358f1346b40522ba9f4">RPMLOG_WARNING</a> =  4, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3a5803ec6088c3f49fb41c9821a018d397">RPMLOG_NOTICE</a> =  5, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3a61175e279b9545516873790164d31e68">RPMLOG_INFO</a> =  6, 
<a class="el" href="group__rpmlog.html#ggacd0c489c508a24a73b39565aaa2658c3a043eff4d80c8c3f3faccf0ba5bb927f4">RPMLOG_DEBUG</a> =  7
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">RPM Log levels.  <a href="group__rpmlog.html#gacd0c489c508a24a73b39565aaa2658c3">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga26fbc175050abb3fb59279061bd9cc6d">rpmlogFac_e</a> { <br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da256c69448feaec4352910967a726aacb">RPMLOG_KERN</a> =  (0&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dae0b102dbc76cb73f810e8e0953d86663">RPMLOG_USER</a> =  (1&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dafd3fa7b01ab4aa9dcb016dda76d2ba7f">RPMLOG_MAIL</a> =  (2&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dab766278d67a06bf1de511ca7d5c29147">RPMLOG_DAEMON</a> =  (3&lt;&lt;3), 
<br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da30cc7b597d869d3411bee46e575c082d">RPMLOG_AUTH</a> =  (4&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da5ec29596e9049b5096ff9e1bc3084812">RPMLOG_SYSLOG</a> =  (5&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6daaeb812d70fef6dd20aa1ad3ac57fee21">RPMLOG_LPR</a> =  (6&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da278213cb08c191b9aaa0ed40c173cacf">RPMLOG_NEWS</a> =  (7&lt;&lt;3), 
<br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dabd57666a2337a4b78c36cc03181fd36b">RPMLOG_UUCP</a> =  (8&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da1c3a865d8eafc7caaa0aac62c9dca70c">RPMLOG_CRON</a> =  (9&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dae4467f9262293f80f98aa60c2c0602df">RPMLOG_AUTHPRIV</a> =  (10&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dadd3e1211cbf08f95a3377cf22a5e6281">RPMLOG_FTP</a> =  (11&lt;&lt;3), 
<br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da3aee531323a0c783c610f31b65c2c877">RPMLOG_LOCAL0</a> =  (16&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6daeb98adba1fea6e262ff5d223c5a3011f">RPMLOG_LOCAL1</a> =  (17&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da6942fee844dafd95f3a22d3f0a9307d4">RPMLOG_LOCAL2</a> =  (18&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da3acd44242fddbb6effa1e240f5d29a97">RPMLOG_LOCAL3</a> =  (19&lt;&lt;3), 
<br/>
&#160;&#160;<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dae6deb6a86eefb12ada2fa9282f1dbc05">RPMLOG_LOCAL4</a> =  (20&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dad307042cb4f521ce017bda451a41840b">RPMLOG_LOCAL5</a> =  (21&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6da9baba13eaf7d24d44d3ee638feb9b478">RPMLOG_LOCAL6</a> =  (22&lt;&lt;3), 
<a class="el" href="group__rpmlog.html#gga26fbc175050abb3fb59279061bd9cc6dac3a66708a3e2ef3d407714355c902447">RPMLOG_LOCAL7</a> =  (23&lt;&lt;3)
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">facility codes  <a href="group__rpmlog.html#ga26fbc175050abb3fb59279061bd9cc6d">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga3d6bcbec3a5536392145f467d378942a">rpmlogRecMessage</a> (<a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a> rec)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve log message string from rpmlog record.  <a href="#ga3d6bcbec3a5536392145f467d378942a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#gabfe81023a9ab3a02410a2e72066fc49c">rpmlogRecPriority</a> (<a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a> rec)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve log priority from rpmlog record.  <a href="#gabfe81023a9ab3a02410a2e72066fc49c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga2648de0e4f3be2a68e8399aa70a77ad3">rpmlogGetNrecs</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return number of rpmError() ressages.  <a href="#ga2648de0e4f3be2a68e8399aa70a77ad3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga5ee3e2cb95bb8c63f100ed55e97447a3">rpmlogPrint</a> (FILE *f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print all rpmError() messages.  <a href="#ga5ee3e2cb95bb8c63f100ed55e97447a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga9b4c0748bb07e4114944d33d00a4e733">rpmlogClose</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Close desriptor used to write to system logger.  <a href="#ga9b4c0748bb07e4114944d33d00a4e733"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga3947e2b64ef2e7286343cf1195381a6a">rpmlogOpen</a> (const char *ident, int option, int facility)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open connection to system logger.  <a href="#ga3947e2b64ef2e7286343cf1195381a6a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga2a985c0c091702a0d164b7413a7d0afb">rpmlogSetMask</a> (int mask)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the log mask level.  <a href="#ga2a985c0c091702a0d164b7413a7d0afb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga78b4b601eded4aa0b0e2836510787841">rpmlog</a> (int code, const char *fmt,...) RPM_GNUC_PRINTF(2</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a log message using FMT string and option arguments.  <a href="#ga78b4b601eded4aa0b0e2836510787841"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga959aed3ef6a2062238dcad258261402f">rpmlogMessage</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return text of last rpmError() message.  <a href="#ga959aed3ef6a2062238dcad258261402f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#gad3aaa6646da9ca925cae85b836247373">rpmlogCode</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return error code from last rpmError() message.  <a href="#gad3aaa6646da9ca925cae85b836247373"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga429671a5a1c97b215e5c628147c09a94">rpmlogLevelPrefix</a> (<a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a> pri)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return translated prefix string (if any) given log level.  <a href="#ga429671a5a1c97b215e5c628147c09a94"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga987d12322a91aa85630f08a61c21aec3">rpmlogSetCallback</a> (<a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a> cb, <a class="el" href="rpmlog_8h.html#ad8d2f285d008965c542686e5335a9120">rpmlogCallbackData</a> data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set rpmlog callback function.  <a href="#ga987d12322a91aa85630f08a61c21aec3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">FILE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmlog.html#ga362a3ed702efffab7484a2969469009e">rpmlogSetFile</a> (FILE *fp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set rpmlog file handle.  <a href="#ga362a3ed702efffab7484a2969469009e"></a><br/></td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="gae531490a822709b975cf13d6639b1bc9"></a><!-- doxytag: member="rpmlog.h::rpmlogCallback" ref="gae531490a822709b975cf13d6639b1bc9" args=")(rpmlogRec rec, rpmlogCallbackData data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int(* <a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a>)(<a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a> rec, <a class="el" href="rpmlog_8h.html#ad8d2f285d008965c542686e5335a9120">rpmlogCallbackData</a> data)</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rec</td><td>rpmlog record </td></tr>
    <tr><td class="paramname">data</td><td>private callback data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>flags to define further behavior: RPMLOG_DEFAULT to perform default logging, RPMLOG_EXIT to exit after processing, 0 to return after callback </dd></dl>

<p>Definition at line <a class="el" href="rpmlog_8h_source.html#l00189">189</a> of file <a class="el" href="rpmlog_8h_source.html">rpmlog.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga0f11f018ccc21124be255e82e656a7c5"></a><!-- doxytag: member="rpmlog.h::rpmlogFac" ref="ga0f11f018ccc21124be255e82e656a7c5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="group__rpmlog.html#ga26fbc175050abb3fb59279061bd9cc6d">rpmlogFac_e</a>  <a class="el" href="group__rpmlog.html#ga0f11f018ccc21124be255e82e656a7c5">rpmlogFac</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>facility codes </p>

</div>
</div>
<a class="anchor" id="ga083ff85cda4655dbd0c81d2ff502795e"></a><!-- doxytag: member="rpmlog.h::rpmlogLvl" ref="ga083ff85cda4655dbd0c81d2ff502795e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="group__rpmlog.html#gacd0c489c508a24a73b39565aaa2658c3">rpmlogLvl_e</a>  <a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>RPM Log levels. </p>
<p>priorities/facilities are encoded into a single 32-bit quantity, where the bottom 3 bits are the priority (0-7) and the top 28 bits are the facility (0-big number). Both the priorities and the facilities map roughly one-to-one to strings in the syslogd(8) source code. This mapping is included in this file.</p>
<p>priorities (these are ordered) </p>

</div>
</div>
<a class="anchor" id="gaaa981c50a1c5096a8b90514b86567ead"></a><!-- doxytag: member="rpmlog.h::rpmlogRec" ref="gaaa981c50a1c5096a8b90514b86567ead" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct rpmlogRec_s* <a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="rpmlog_8h_source.html#l00163">163</a> of file <a class="el" href="rpmlog_8h_source.html">rpmlog.h</a>.</p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="ga26fbc175050abb3fb59279061bd9cc6d"></a><!-- doxytag: member="rpmlog.h::rpmlogFac_e" ref="ga26fbc175050abb3fb59279061bd9cc6d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rpmlog.html#ga26fbc175050abb3fb59279061bd9cc6d">rpmlogFac_e</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>facility codes </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da256c69448feaec4352910967a726aacb"></a><!-- doxytag: member="RPMLOG_KERN" ref="gga26fbc175050abb3fb59279061bd9cc6da256c69448feaec4352910967a726aacb" args="" -->RPMLOG_KERN</em>&nbsp;</td><td>
<p>kernel messages </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dae0b102dbc76cb73f810e8e0953d86663"></a><!-- doxytag: member="RPMLOG_USER" ref="gga26fbc175050abb3fb59279061bd9cc6dae0b102dbc76cb73f810e8e0953d86663" args="" -->RPMLOG_USER</em>&nbsp;</td><td>
<p>random user-level messages </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dafd3fa7b01ab4aa9dcb016dda76d2ba7f"></a><!-- doxytag: member="RPMLOG_MAIL" ref="gga26fbc175050abb3fb59279061bd9cc6dafd3fa7b01ab4aa9dcb016dda76d2ba7f" args="" -->RPMLOG_MAIL</em>&nbsp;</td><td>
<p>mail system </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dab766278d67a06bf1de511ca7d5c29147"></a><!-- doxytag: member="RPMLOG_DAEMON" ref="gga26fbc175050abb3fb59279061bd9cc6dab766278d67a06bf1de511ca7d5c29147" args="" -->RPMLOG_DAEMON</em>&nbsp;</td><td>
<p>system daemons </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da30cc7b597d869d3411bee46e575c082d"></a><!-- doxytag: member="RPMLOG_AUTH" ref="gga26fbc175050abb3fb59279061bd9cc6da30cc7b597d869d3411bee46e575c082d" args="" -->RPMLOG_AUTH</em>&nbsp;</td><td>
<p>security/authorization messages </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da5ec29596e9049b5096ff9e1bc3084812"></a><!-- doxytag: member="RPMLOG_SYSLOG" ref="gga26fbc175050abb3fb59279061bd9cc6da5ec29596e9049b5096ff9e1bc3084812" args="" -->RPMLOG_SYSLOG</em>&nbsp;</td><td>
<p>messages generated internally by syslogd </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6daaeb812d70fef6dd20aa1ad3ac57fee21"></a><!-- doxytag: member="RPMLOG_LPR" ref="gga26fbc175050abb3fb59279061bd9cc6daaeb812d70fef6dd20aa1ad3ac57fee21" args="" -->RPMLOG_LPR</em>&nbsp;</td><td>
<p>line printer subsystem </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da278213cb08c191b9aaa0ed40c173cacf"></a><!-- doxytag: member="RPMLOG_NEWS" ref="gga26fbc175050abb3fb59279061bd9cc6da278213cb08c191b9aaa0ed40c173cacf" args="" -->RPMLOG_NEWS</em>&nbsp;</td><td>
<p>network news subsystem </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dabd57666a2337a4b78c36cc03181fd36b"></a><!-- doxytag: member="RPMLOG_UUCP" ref="gga26fbc175050abb3fb59279061bd9cc6dabd57666a2337a4b78c36cc03181fd36b" args="" -->RPMLOG_UUCP</em>&nbsp;</td><td>
<p>UUCP subsystem </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da1c3a865d8eafc7caaa0aac62c9dca70c"></a><!-- doxytag: member="RPMLOG_CRON" ref="gga26fbc175050abb3fb59279061bd9cc6da1c3a865d8eafc7caaa0aac62c9dca70c" args="" -->RPMLOG_CRON</em>&nbsp;</td><td>
<p>clock daemon </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dae4467f9262293f80f98aa60c2c0602df"></a><!-- doxytag: member="RPMLOG_AUTHPRIV" ref="gga26fbc175050abb3fb59279061bd9cc6dae4467f9262293f80f98aa60c2c0602df" args="" -->RPMLOG_AUTHPRIV</em>&nbsp;</td><td>
<p>security/authorization messages (private) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dadd3e1211cbf08f95a3377cf22a5e6281"></a><!-- doxytag: member="RPMLOG_FTP" ref="gga26fbc175050abb3fb59279061bd9cc6dadd3e1211cbf08f95a3377cf22a5e6281" args="" -->RPMLOG_FTP</em>&nbsp;</td><td>
<p>ftp daemon </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da3aee531323a0c783c610f31b65c2c877"></a><!-- doxytag: member="RPMLOG_LOCAL0" ref="gga26fbc175050abb3fb59279061bd9cc6da3aee531323a0c783c610f31b65c2c877" args="" -->RPMLOG_LOCAL0</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6daeb98adba1fea6e262ff5d223c5a3011f"></a><!-- doxytag: member="RPMLOG_LOCAL1" ref="gga26fbc175050abb3fb59279061bd9cc6daeb98adba1fea6e262ff5d223c5a3011f" args="" -->RPMLOG_LOCAL1</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da6942fee844dafd95f3a22d3f0a9307d4"></a><!-- doxytag: member="RPMLOG_LOCAL2" ref="gga26fbc175050abb3fb59279061bd9cc6da6942fee844dafd95f3a22d3f0a9307d4" args="" -->RPMLOG_LOCAL2</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da3acd44242fddbb6effa1e240f5d29a97"></a><!-- doxytag: member="RPMLOG_LOCAL3" ref="gga26fbc175050abb3fb59279061bd9cc6da3acd44242fddbb6effa1e240f5d29a97" args="" -->RPMLOG_LOCAL3</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dae6deb6a86eefb12ada2fa9282f1dbc05"></a><!-- doxytag: member="RPMLOG_LOCAL4" ref="gga26fbc175050abb3fb59279061bd9cc6dae6deb6a86eefb12ada2fa9282f1dbc05" args="" -->RPMLOG_LOCAL4</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dad307042cb4f521ce017bda451a41840b"></a><!-- doxytag: member="RPMLOG_LOCAL5" ref="gga26fbc175050abb3fb59279061bd9cc6dad307042cb4f521ce017bda451a41840b" args="" -->RPMLOG_LOCAL5</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6da9baba13eaf7d24d44d3ee638feb9b478"></a><!-- doxytag: member="RPMLOG_LOCAL6" ref="gga26fbc175050abb3fb59279061bd9cc6da9baba13eaf7d24d44d3ee638feb9b478" args="" -->RPMLOG_LOCAL6</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga26fbc175050abb3fb59279061bd9cc6dac3a66708a3e2ef3d407714355c902447"></a><!-- doxytag: member="RPMLOG_LOCAL7" ref="gga26fbc175050abb3fb59279061bd9cc6dac3a66708a3e2ef3d407714355c902447" args="" -->RPMLOG_LOCAL7</em>&nbsp;</td><td>
<p>reserved for local use </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="rpmlog_8h_source.html#l00075">75</a> of file <a class="el" href="rpmlog_8h_source.html">rpmlog.h</a>.</p>

</div>
</div>
<a class="anchor" id="gacd0c489c508a24a73b39565aaa2658c3"></a><!-- doxytag: member="rpmlog.h::rpmlogLvl_e" ref="gacd0c489c508a24a73b39565aaa2658c3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rpmlog.html#gacd0c489c508a24a73b39565aaa2658c3">rpmlogLvl_e</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>RPM Log levels. </p>
<p>priorities/facilities are encoded into a single 32-bit quantity, where the bottom 3 bits are the priority (0-7) and the top 28 bits are the facility (0-big number). Both the priorities and the facilities map roughly one-to-one to strings in the syslogd(8) source code. This mapping is included in this file.</p>
<p>priorities (these are ordered) </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3acc41f4f3e098ee5c7ae0f079cd6b7715"></a><!-- doxytag: member="RPMLOG_EMERG" ref="ggacd0c489c508a24a73b39565aaa2658c3acc41f4f3e098ee5c7ae0f079cd6b7715" args="" -->RPMLOG_EMERG</em>&nbsp;</td><td>
<p>system is unusable </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3ae83b7c915d88e48370e5073b102ee091"></a><!-- doxytag: member="RPMLOG_ALERT" ref="ggacd0c489c508a24a73b39565aaa2658c3ae83b7c915d88e48370e5073b102ee091" args="" -->RPMLOG_ALERT</em>&nbsp;</td><td>
<p>action must be taken immediately </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3abb8a8a27c1d6705f10aadf7ae23ea059"></a><!-- doxytag: member="RPMLOG_CRIT" ref="ggacd0c489c508a24a73b39565aaa2658c3abb8a8a27c1d6705f10aadf7ae23ea059" args="" -->RPMLOG_CRIT</em>&nbsp;</td><td>
<p>critical conditions </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3a29cea4e65e8a30e907609e83187b439d"></a><!-- doxytag: member="RPMLOG_ERR" ref="ggacd0c489c508a24a73b39565aaa2658c3a29cea4e65e8a30e907609e83187b439d" args="" -->RPMLOG_ERR</em>&nbsp;</td><td>
<p>error conditions </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3a4a8bda88dc45c358f1346b40522ba9f4"></a><!-- doxytag: member="RPMLOG_WARNING" ref="ggacd0c489c508a24a73b39565aaa2658c3a4a8bda88dc45c358f1346b40522ba9f4" args="" -->RPMLOG_WARNING</em>&nbsp;</td><td>
<p>warning conditions </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3a5803ec6088c3f49fb41c9821a018d397"></a><!-- doxytag: member="RPMLOG_NOTICE" ref="ggacd0c489c508a24a73b39565aaa2658c3a5803ec6088c3f49fb41c9821a018d397" args="" -->RPMLOG_NOTICE</em>&nbsp;</td><td>
<p>normal but significant condition </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3a61175e279b9545516873790164d31e68"></a><!-- doxytag: member="RPMLOG_INFO" ref="ggacd0c489c508a24a73b39565aaa2658c3a61175e279b9545516873790164d31e68" args="" -->RPMLOG_INFO</em>&nbsp;</td><td>
<p>informational </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggacd0c489c508a24a73b39565aaa2658c3a043eff4d80c8c3f3faccf0ba5bb927f4"></a><!-- doxytag: member="RPMLOG_DEBUG" ref="ggacd0c489c508a24a73b39565aaa2658c3a043eff4d80c8c3f3faccf0ba5bb927f4" args="" -->RPMLOG_DEBUG</em>&nbsp;</td><td>
<p>debug-level messages </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="rpmlog_8h_source.html#l00029">29</a> of file <a class="el" href="rpmlog_8h_source.html">rpmlog.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga78b4b601eded4aa0b0e2836510787841"></a><!-- doxytag: member="rpmlog.h::rpmlog" ref="ga78b4b601eded4aa0b0e2836510787841" args="(int code, const char *fmt,...) RPM_GNUC_PRINTF(2" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmlog </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Generate a log message using FMT string and option arguments. </p>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00058">buildArgCallback()</a>, <a class="el" href="rpmbuild_8c_source.html#l00360">buildForTarget()</a>, <a class="el" href="rpmbuild_8c_source.html#l00225">checkSpec()</a>, <a class="el" href="rpmbuild_8c_source.html#l00286">getTarSpec()</a>, and <a class="el" href="rpmbuild_8c_source.html#l00239">isSpecFile()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9b4c0748bb07e4114944d33d00a4e733"></a><!-- doxytag: member="rpmlog.h::rpmlogClose" ref="ga9b4c0748bb07e4114944d33d00a4e733" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmlogClose </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Close desriptor used to write to system logger. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Implement. </dd></dl>

</div>
</div>
<a class="anchor" id="gad3aaa6646da9ca925cae85b836247373"></a><!-- doxytag: member="rpmlog.h::rpmlogCode" ref="gad3aaa6646da9ca925cae85b836247373" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmlogCode </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return error code from last rpmError() message. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Perl-RPM needs, what's really needed is predictable, non-i18n encumbered, error text that can be retrieved through <a class="el" href="group__rpmlog.html#ga959aed3ef6a2062238dcad258261402f" title="Return text of last rpmError() message.">rpmlogMessage()</a> and parsed IMHO. </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>code from last message </dd></dl>

</div>
</div>
<a class="anchor" id="ga2648de0e4f3be2a68e8399aa70a77ad3"></a><!-- doxytag: member="rpmlog.h::rpmlogGetNrecs" ref="ga2648de0e4f3be2a68e8399aa70a77ad3" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmlogGetNrecs </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return number of rpmError() ressages. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of messages </dd></dl>

</div>
</div>
<a class="anchor" id="ga429671a5a1c97b215e5c628147c09a94"></a><!-- doxytag: member="rpmlog.h::rpmlogLevelPrefix" ref="ga429671a5a1c97b215e5c628147c09a94" args="(rpmlogLvl pri)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* rpmlogLevelPrefix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a>&#160;</td>
          <td class="paramname"><em>pri</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return translated prefix string (if any) given log level. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pri</td><td>log priority </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>message prefix (or "" for none) </dd></dl>

</div>
</div>
<a class="anchor" id="ga959aed3ef6a2062238dcad258261402f"></a><!-- doxytag: member="rpmlog.h::rpmlogMessage" ref="ga959aed3ef6a2062238dcad258261402f" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void const char* rpmlogMessage </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return text of last rpmError() message. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>text of last message </dd></dl>

</div>
</div>
<a class="anchor" id="ga3947e2b64ef2e7286343cf1195381a6a"></a><!-- doxytag: member="rpmlog.h::rpmlogOpen" ref="ga3947e2b64ef2e7286343cf1195381a6a" args="(const char *ident, int option, int facility)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmlogOpen </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>ident</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>facility</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open connection to system logger. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Implement. </dd></dl>

</div>
</div>
<a class="anchor" id="ga5ee3e2cb95bb8c63f100ed55e97447a3"></a><!-- doxytag: member="rpmlog.h::rpmlogPrint" ref="ga5ee3e2cb95bb8c63f100ed55e97447a3" args="(FILE *f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmlogPrint </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print all rpmError() messages. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>file handle (NULL uses stderr) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga3d6bcbec3a5536392145f467d378942a"></a><!-- doxytag: member="rpmlog.h::rpmlogRecMessage" ref="ga3d6bcbec3a5536392145f467d378942a" args="(rpmlogRec rec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* rpmlogRecMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a>&#160;</td>
          <td class="paramname"><em>rec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve log message string from rpmlog record. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rec</td><td>rpmlog record </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>log message </dd></dl>

</div>
</div>
<a class="anchor" id="gabfe81023a9ab3a02410a2e72066fc49c"></a><!-- doxytag: member="rpmlog.h::rpmlogRecPriority" ref="gabfe81023a9ab3a02410a2e72066fc49c" args="(rpmlogRec rec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rpmlog.html#ga083ff85cda4655dbd0c81d2ff502795e">rpmlogLvl</a> rpmlogRecPriority </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__rpmlog.html#gaaa981c50a1c5096a8b90514b86567ead">rpmlogRec</a>&#160;</td>
          <td class="paramname"><em>rec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve log priority from rpmlog record. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rec</td><td>rpmlog record </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>log priority </dd></dl>

</div>
</div>
<a class="anchor" id="ga987d12322a91aa85630f08a61c21aec3"></a><!-- doxytag: member="rpmlog.h::rpmlogSetCallback" ref="ga987d12322a91aa85630f08a61c21aec3" args="(rpmlogCallback cb, rpmlogCallbackData data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a> rpmlogSetCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__rpmlog.html#gae531490a822709b975cf13d6639b1bc9">rpmlogCallback</a>&#160;</td>
          <td class="paramname"><em>cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="rpmlog_8h.html#ad8d2f285d008965c542686e5335a9120">rpmlogCallbackData</a>&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set rpmlog callback function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cb</td><td>rpmlog callback function </td></tr>
    <tr><td class="paramname">data</td><td>callback private (user) data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>previous rpmlog callback function </dd></dl>

</div>
</div>
<a class="anchor" id="ga362a3ed702efffab7484a2969469009e"></a><!-- doxytag: member="rpmlog.h::rpmlogSetFile" ref="ga362a3ed702efffab7484a2969469009e" args="(FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FILE* rpmlogSetFile </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set rpmlog file handle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>rpmlog file handle (NULL uses stdout/stderr) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>previous rpmlog file handle </dd></dl>

</div>
</div>
<a class="anchor" id="ga2a985c0c091702a0d164b7413a7d0afb"></a><!-- doxytag: member="rpmlog.h::rpmlogSetMask" ref="ga2a985c0c091702a0d164b7413a7d0afb" args="(int mask)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmlogSetMask </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mask</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the log mask level. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mask</td><td>log mask (0 is no operation) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>previous log mask </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>