🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2616

Indy 9 SysLogMessage Question....

#2616
From: Paul
Date: Wed, 15 Mar 2006 17:10
27 lines
1658 bytes
Hi,

I'm trying to work out how to fill in the TIdSysLogMessage from the client 
end.  Is the following correct as I don't seem to be able to get the 
Process, PID, and Msg Content to appear on the server?

Paul

------------------

    TIdSysLogMessage * sl = new TIdSysLogMessage(NULL);

    // default data set by class constructor
    sl->Hostname        = GetMyHost();
    sl->Msg->Process = GetName();
    sl->Msg->PID       = GetID();
    sl->Msg->PIDAvailable = true;

    // run time data
    sl->TimeStamp      = Now();
    sl->Msg->Content = msg->str;
    sl->Severity           = msg->severity;
    sl->Facility             = msg->facility;

    // sl->Pri;     // this is set by setting "Severity and Facility"
    // sl->Peer;    // this is....?
    // sl->Version; // is built in Indy (read only)
Technical Details
Message-ID: <44184a9c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,53d527dfd39dc90c,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul" <plmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy 9 SysLogMessage Question....
Date: Wed, 15 Mar 2006 17:10:57 -0000
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 86.142.238.175
Message-ID: <44184a9c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142442652 86.142.238.175 (15 Mar 2006 09:10:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail