Root > Reference > All Interfaces > IEurekaLoggerParams > Methods > IEurekaLoggerParams.P

Method IEurekaLoggerParams.P

Previous pageReturn to chapter overviewNext page   

Logs argument.

 

Unit

ELogging

 

Syntax

 

Code (Delphi)

public

function P(

const AName, AValue: String

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: Int64

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: Pointer

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: TObject

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: Boolean

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: TGUID

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: TDateTime

): IEurekaLoggerParams; overload;

 

function P(

const AName: String;

const AValue: System.UInt64

): IEurekaLoggerParams; overload;

 

Parameters

AName

Name of the argument as it appears in source code.

 

AValue

Value of the argument.

 

Return value

Returns log entry with created new argument. This value could be used to add more arguments, to close function call, or to log Result.

 

Remarks

Use this method to log one or more arguments to sub-routine.

 

Important!

You have to call either D or C method on the returned IEurekaLoggerParams interface. Otherwise nested log entries may have wrong identation in the resulting log file.

 

Examples

 

Code (Delphi)

function Test(const AIndex: Integer; const ASpecifier: String): Integer;

var

L: IEurekaLoggerParams;

begin

L := ELogEnter('Test').

P('AIndex', AIndex).

P('ASpecifier', ASpecifier).

D;

 

// your code

 

L.Ret(Result);

end;

 

See also




Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_method_elogging_ieurekaloggerparams_p.php