[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazLoggerBase' (#lazutils)

DbgSName

Generates a message with the optional name and class type for the specified object.

Declaration

Source position: LazLoggerIntf.inc line 108

function DbgSName(

  const p: TObject

):string; overload;

function DbgSName(

  const p: TClass

):string; overload;

Arguments

p

  

TObject instance examined in the routine.

Function result

Formatted message with the optional name and class type for the specified value.

Arguments

p

  

TObject instance examined in the routine.

Description

DbgSName generates a log message with the optional name and class type for the object in p.

When p has not been assigned, the return value contains:

'Nil'

When p is a TComponent descendant, the return value contains a value like:

TComponent.Name + ':' + TComponent.ClassName

Otherwise, the return value is set to:

TObject.ClassName

If the LazLogger_Dummy unit has been included in the application, the return value is an empty string.


Version 4.0 Generated 2025-05-03 Home