# Unit slogsend

Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables

## Description

BSD SYSLOG protocol

Used RFC: RFC-3164

## uses

- SysUtils
- Classes
- blcksock
- synautil

## Overview

### Classes, Interfaces, Objects and Records

Name | Description
--- | ---
Class `TSyslogMessage` | encoding or decoding of SYSLOG message
Class `TSyslogSend` | This object implement BSD SysLog client

### Functions and Procedures

`function ToSysLog(const SyslogServer: string; Facil: Byte; Sever: TSyslogSeverity; const Content: string): Boolean;`

### Types

`TSyslogSeverity = (...);`

### Constants

`cSysLogProtocol = '514';`
`FCL_Kernel = 0;`
`FCL_UserLevel = 1;`
`FCL_MailSystem = 2;`
`FCL_System = 3;`
`FCL_Security = 4;`
`FCL_Syslogd = 5;`
`FCL_Printer = 6;`
`FCL_News = 7;`
`FCL_UUCP = 8;`
`FCL_Clock = 9;`
`FCL_Authorization = 10;`
`FCL_FTP = 11;`
`FCL_NTP = 12;`
`FCL_LogAudit = 13;`
`FCL_LogAlert = 14;`
`FCL_Time = 15;`
`FCL_Local0 = 16;`
`FCL_Local1 = 17;`
`FCL_Local2 = 18;`
`FCL_Local3 = 19;`
`FCL_Local4 = 20;`
`FCL_Local5 = 21;`
`FCL_Local6 = 22;`
`FCL_Local7 = 23;`

## Description

### Functions and Procedures

`function ToSysLog(const SyslogServer: string; Facil: Byte; Sever: TSyslogSeverity; const Content: string): Boolean;`

Simply send packet to specified Syslog server.

### Types

`TSyslogSeverity = (...);`

Define possible priority of Syslog message

- Emergency:
- Alert:
- Critical:
- Error:
- Warning:
- Notice:
- Info:
- Debug:

### Constants

`cSysLogProtocol = '514';`

`FCL_Kernel = 0;`

`FCL_UserLevel = 1;`

`FCL_MailSystem = 2;`

`FCL_System = 3;`

`FCL_Security = 4;`

`FCL_Syslogd = 5;`

`FCL_Printer = 6;`

`FCL_News = 7;`

`FCL_UUCP = 8;`

`FCL_Clock = 9;`

`FCL_Authorization = 10;`

`FCL_FTP = 11;`

`FCL_NTP = 12;`

`FCL_LogAudit = 13;`

`FCL_LogAlert = 14;`

`FCL_Time = 15;`

`FCL_Local0 = 16;`

`FCL_Local1 = 17;`

`FCL_Local2 = 18;`

`FCL_Local3 = 19;`

`FCL_Local4 = 20;`

`FCL_Local5 = 21;`

`FCL_Local6 = 22;`

`FCL_Local7 = 23;`

Generated by PasDoc 0.9.0 on 2012-04-23 21:38:51