Topic Path: Symbol Reference > Classes > TIdLogBase Class > TIdLogBase Methods > Receive Method
TIdLogBase.Receive Method

Writes log messages when data is received with the intercept.

procedure Receive(
    var ABuffer: TIdBytes
); override;
Values from a receive operation to write to the logging intercept. 

Receive is an overriden procedure in TIdLogBase that implements logging the contents in the buffer specified by ABuffer as part of a Receive operation. 

Active must contain True, or no operation is performed in Receive. 

When Active is True, Receive calls the inherited method prior to constructing the contents of the log message from ABuffer. When LogTime is True, the current date and time stamp is prepended to the log message. When ReplaceCRLF is True, all instances of CR, LF, and EOL in the message are replaced with their tag counterparts, "<CR>", "<LF>", and "<EOL>". 

Receive wites the log message containing the generated and received values to the storage destination for the logging intercept. 

Set Active to False to disable logging with intercept. 

Use Send to implement logging the contents in a Send operation.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.