Login   Register  
PHP Classes
elePHPant
Icontem

File: Example.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Zsolt Munoz  >  kiwiLogger  >  Example.txt  >  Download  
File: Example.txt
Role: Example script
Content type: text/plain
Description: Basic Example
Class: kiwiLogger
Log events with the Kiwi logger component
Author: By
Last change:
Date: 2008-09-18 11:20
Size: 511 bytes
 

Contents

Class file image Download
<?
$testKiwi 
= new kiwiLogger();
$testKiwi->RemoteAddress("IP Address or Host Name");
$testKiwi->RemotePort("514");
$testKiwi->FacilityName("Local0");
$testKiwi->LevelName("Alert");
$testKiwi->UseRFC(true);
$myArray = array(
    
'Device' => 'TEST-DEVICE',
    
'EventID' => 'TEST123-444',
    
'FullName' => 'Name Here',
    
'e-mail' => 'user@sample.com',
    
'source' => 'ProgramName',
    
'Description' => 'Short Description');
$testKiwi->MessageText($testKiwi->buildQuery($myArray));
$testKiwi->SendMessage();
?>