Completes logging of function call.
Unit
ELogging
Syntax
Return value
Returns log entry. This value could be used to log Result.
Remarks
Call this method to indicate that there are no more arguments to the function.
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)
|
procedure DoSomething;
begin
ELogEnter('DoSomething').D;
// your code
end;
|
Code (Delphi)
|
procedure TObject.DoSomething;
begin
ELogEnter(Self, 'DoSomething').D;
// your code
end;
|
Code (Delphi)
|
procedure TObject.DoSomething(const AValue: Integer);
begin
ELogEnter(Self, 'DoSomething').P('AValue', AValue).D;
// your code
end;
|
Code (Delphi)
|
procedure TObject.DoSomething(const AMsg: String; const AValue: Integer);
begin
ELogEnter(Self, 'DoSomething').P('AMsg', AMsg).P('AValue', AValue).D;
// your code
end;
|
Code (Delphi)
|
function TObject.DoSomething(const AValue: Integer): Integer;
var
L: IEurekaLoggerParams;
begin
L := ELogEnter(Self, 'DoSomething').P('AValue', AValue).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_d.php
|
|