1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>Remote Logger Operation</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="PREVIOUS" title= 12 "I want to replace lp, lpstat, etc, but my programs need them" 13 href="x10839.htm"> 14 <link rel="NEXT" title="Logger Messages" href="x10892.htm"> 15 </head> 16 17 <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link= 18 "#0000FF" vlink="#840084" alink="#0000FF"> 19 <div class="NAVHEADER"> 20 <table summary="Header navigation table" width="100%" border= 21 "0" cellpadding="0" cellspacing="0"> 22 <tr> 23 <th colspan="3" align="center">LPRng Reference Manual: 5 24 Sep 2003 (For LPRng-3.8.22)</th> 25 </tr> 26 27 <tr> 28 <td width="10%" align="left" valign="bottom"><a href= 29 "x10839.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom"> 32 </td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "x10892.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="CHAPTER"> 42 <h1><a name="REMOTELOGGER"></a>Chapter 21. Remote Logger 43 Operation</h1> 44 45 <div class="TOC"> 46 <dl> 47 <dt><b>Table of Contents</b></dt> 48 49 <dt>21.1. <a href="remotelogger.htm#LOGGER">Logger 50 Network Communication</a></dt> 51 52 <dt>21.2. <a href="x10892.htm">Logger Messages</a></dt> 53 54 <dt>21.3. <a href="x10897.htm">Message Format</a></dt> 55 56 <dt>21.4. <a href="x10925.htm">Dump Messages</a></dt> 57 58 <dt>21.5. <a href="x10928.htm">LPD Messages</a></dt> 59 60 <dt>21.6. <a href="x10933.htm">Job Status Messages - 61 UPDATE</a></dt> 62 63 <dt>21.7. <a href="x10945.htm">Printer Status Messages - 64 PRSTATUS</a></dt> 65 </dl> 66 </div> 67 68 <p>Several sites have wanted a way to provide central logging 69 of job status and/or information. In order to do this, the 70 following functionality is implemented in <b class= 71 "APPLICATION">LPRng</b>.</p> 72 73 <div class="SECT1"> 74 <h1 class="SECT1"><a name="LOGGER">21.1. Logger Network 75 Communication</a></h1> 76 77 <p>Options used:</p> 78 79 <ul> 80 <li> 81 <p><var class="LITERAL">logger_destination=</var><span 82 class="emphasis"><i class="EMPHASIS">logger information 83 destination</i></span></p> 84 </li> 85 86 <li> 87 <p><var class="LITERAL">logger_pathname=</var><span 88 class="emphasis"><i class="EMPHASIS">pathname of temp 89 file for log information</i></span></p> 90 </li> 91 92 <li> 93 <p><var class="LITERAL">logger_max_size=</var><span 94 class="emphasis"><i class="EMPHASIS">max size in K of 95 temp file for log information</i></span></p> 96 </li> 97 98 <li> 99 <p><var class="LITERAL">logger_timeout=</var><span 100 class="emphasis"><i class="EMPHASIS">time between 101 connection attempts</i></span></p> 102 </li> 103 </ul> 104 <br> 105 <br> 106 107 <p>The printcap/configuration variable <var class= 108 "LITERAL">logger_destination</var> specifies a destination 109 in the standard <var class="LITERAL">host%port</var> 110 notation used by <b class="APPLICATION">LPRng</b>. Host is 111 the destination host, and can be a name or IP address. Port 112 is the port on the destination host. A TCP/IP connection is 113 made to the indicated port.</p> 114 115 <p>Log information is save in a temporary file specified by 116 <var class="LITERAL">logger_path</var>, and up to <var 117 class="LITERAL">logger_max_size</var> K bytes of data will 118 be saved.</p> 119 120 <p>If a connection cannot be made to the <var class= 121 "LITERAL">logger_destination</var>, then every <var class= 122 "LITERAL">logger_timeout</var> seconds a new connection 123 attempt will be made. If <var class= 124 "LITERAL">logger_timeout</var> is 0, then a connection 125 attempt will be made every time new data arrives to be 126 logged.</p> 127 </div> 128 </div> 129 130 <div class="NAVFOOTER"> 131 <hr align="LEFT" width="100%"> 132 133 <table summary="Footer navigation table" width="100%" border= 134 "0" cellpadding="0" cellspacing="0"> 135 <tr> 136 <td width="33%" align="left" valign="top"><a href= 137 "x10839.htm" accesskey="P">Prev</a></td> 138 139 <td width="34%" align="center" valign="top"><a href= 140 "index.htm" accesskey="H">Home</a></td> 141 142 <td width="33%" align="right" valign="top"><a href= 143 "x10892.htm" accesskey="N">Next</a></td> 144 </tr> 145 146 <tr> 147 <td width="33%" align="left" valign="top">I want to 148 replace lp, lpstat, etc, but my programs need them</td> 149 150 <td width="34%" align="center" valign="top"> </td> 151 152 <td width="33%" align="right" valign="top">Logger 153 Messages</td> 154 </tr> 155 </table> 156 </div> 157 </body> 158</html> 159 160