Privacy Policy

Guest
  • Guest
  • Guest Topic Starter
2000-05-12T01:59:54Z
Date parsed: 5/12/2000 1:59:54 AM

Date: Fri, 12 May 2000 00:59:54 +0200

This is a multi-part message in MIME format.

------_=_NextPart_001_01BFBB9C.9EDF3360

Content-Type: text/plain;

charset="Windows-1252"

Content-Transfer-Encoding: quoted-printable

The content of a syslog message contains three elements: the facility =

code,

the priority code and the message text.

The textual format is '<x>y' where x is a decimal value which encodes =

the

facility and priority code:

x =3D Facility << 3 | Priority .

y is the message text.

For example:

"<20>Mailbox does not exist"

This example would imply the facility MAIL SYSTEM (2<<3) and the =

priority

WARNING (4).

2<<3 =3D 16

16 + 4 =3D 20

Please take a look at the attached syslog.h file for more information =

about

supported facility and priority codes.

Franz

"Andrey Cherezov" <andrey@cherezov.koenig.su> wrote in message

news:3A25DBCDF73F2245957BD0B041BEDAF001224F@is1.netal.com...

> "Andrey Cherezov" <andrey@cherezov.koenig.su> wrote in message

> news:3A25DBCDF73F2245957BD0B041BEDAF0012248@is1.netal.com...

> > I want to use SysLog to log events from my own program.

> > Where can I find the description of format of UDP-datagrams for

> > sending to SysLog?

>

> I've found the example:

> <20>This is a mail system warning

> <33>This is a security/auth alert

> <41>This is a syslog daemon alert

> <9>This is a user alert

> <14>This is a user info

>

> But how to assign these numbers?

>

------_=_NextPart_001_01BFBB9C.9EDF3360

Content-Type: application/octet-stream;

name="syslog.h"

Content-Transfer-Encoding: base64

Content-Description: syslog.h

Content-Disposition: attachment;

filename="syslog.h"

LyoNCiAqIENvcHlyaWdodCAoYykgMTk4MiwgMTk4NiwgMTk4OCBSZWdlbnRzIG9mIHRoZSBVbml2

ZXJzaXR5IG9mIENhbGlmb3JuaWEuDQogKiBBbGwgcmlnaHRzIHJlc2VydmVkLg0KICoNCiAqIFJl

ZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMgYXJlIHBlcm1p

dHRlZA0KICogcHJvdmlkZWQgdGhhdC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