Skip to content

Commit eac4495

Browse files
committed
Update syslog.class.php
1 parent 080d6d8 commit eac4495

1 file changed

Lines changed: 63 additions & 5 deletions

File tree

syslog.class.php

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,21 +219,79 @@ class Net_Syslog
219219
{
220220
/**
221221
* Sender hostname
222+
*
222223
* No domain name, only a-z A-Z 0-9 and other authorized characters
223224
*
224-
* @acess private
225+
* @access private
225226
* @var string
226227
*/
227228
private $_hostname;
228-
private $_server; // Syslog destination server
229-
private $_port; // Standard syslog port is 514 or 6514 for RFC 5425 (TLS)
230-
private $_protocol; // Allow to specify between udp, tcp, ssl and tls
229+
230+
/**
231+
* Syslog remote server address
232+
*
233+
* @access private
234+
* @var string
235+
*/
236+
private $_server;
237+
238+
/**
239+
* Syslog remote server port
240+
*
241+
* Standard syslog port is 514 or 6514 for RFC 5425 (TLS)
242+
*
243+
* @access private
244+
* @var integer
245+
*/
246+
private $_port;
247+
248+
/**
249+
* Protocol to syslog server
250+
*
251+
* Allowed values are :
252+
* - NET_SYSLOG_UDP : UDP
253+
* - NET_SYSLOG_TCP : TCP
254+
* - NET_SYSLOG_SSL : SSL
255+
* - NET_SYSLOG_TLS : TLS
256+
*
257+
* @access private
258+
* @var string
259+
*/
260+
private $_protocol;
261+
262+
/**
263+
* Socket used by class
264+
*
265+
* @access private
266+
* @var object
267+
*/
231268
private $_socket;
269+
270+
/**
271+
* filename for CA Certificate used in SSL connection, if necessary
272+
*
273+
* @access private
274+
* @var string
275+
*/
232276
private $_cafile;
277+
278+
/**
279+
* ProcID as defined in RFC 5424
280+
*
281+
* @access private
282+
* @var string
283+
*/
233284
private $_procid;
285+
286+
/**
287+
* AppName as defined in RFC 5424
288+
*
289+
* @access private
290+
* @var string
291+
*/
234292
private $_appname;
235293

236-
public function Syslog($hostname = "", $appname = NET_SYSLOG_NILVALUE,
294+
public function Net_Syslog($hostname = "", $appname = NET_SYSLOG_NILVALUE,
237295
$protocol = NET_SYSLOG_UDP, $procid = NET_SYSLOG_NILVALUE
238296
) {
239297
$this->_rfc = NET_SYSLOG_RFC3164;

0 commit comments

Comments
 (0)