nanoserv
[ class tree: nanoserv ] [ index: nanoserv ] [ all elements ]

Class: NS_Syslog_Handler

Source Location: /handlers/NS_Syslog_Handler.php

Class Overview

NS_Handler
   |
   --NS_Datagram_Handler
      |
      --NS_Syslog_Handler

Syslog protocol handler handler class


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: NS_Datagram_Handler

NS_Datagram_Handler::__construct()
NS_Datagram_Handler constructor
NS_Datagram_Handler::Activate()
Activate the listener
NS_Datagram_Handler::Deactivate()
Deactivate the listener
NS_Datagram_Handler::on_Read()
Event called on data reception
NS_Datagram_Handler::Write()
Send data over the connection
NS_Datagram_Handler::__destruct()
NS_Datagram_Handler destructor

Class: NS_Handler

NS_Handler::Set_Option()
Set a stream context option

Class Details

[line 38]
Syslog protocol handler handler class



Tags:

abstract:  


[ Top ]


Class Methods


static method Code_To_Facility [line 46]

static string Code_To_Facility( int $code)

Get facility name from numerical code



Tags:

access:  public


Parameters:

int   $code  

[ Top ]

static method Facility_To_Code [line 83]

static int Facility_To_Code( string $name)

Get facility numerical code from name



Tags:

access:  public


Parameters:

string   $name  

[ Top ]

method on_Event [line 133]

void on_Event( string $host, int $facility, int $severity, string $message)

Event called on new syslog event



Tags:

abstract:  
access:  public


Parameters:

string   $host  
int   $facility  
int   $severity  
string   $message  

[ Top ]

method on_Read [line 112]

void on_Read( $from, $data)



Tags:

access:  public


Overrides NS_Datagram_Handler::on_Read() (Event called on data reception)

Parameters:

   $from  
   $data  

[ Top ]


Documentation generated on Thu, 10 May 2012 22:01:25 +0200 by phpDocumentor 1.4.4