PHP Classes

File: Example.txt

Recommend this page to a friend!
  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: 16 years ago
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();
?>