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

TLazLoggerLogGroupList.FindOrAdd

Finds or creates a log group in the container with the specified name and enabled status.

Declaration

Source position: lazloggerbase.pas line 94

protected function TLazLoggerLogGroupList.FindOrAdd(

  const AConfigName: string;

  ADefaulEnabled: Boolean = False

):PLazLoggerLogGroup;

Arguments

AConfigName

  

Name of the log group to locate or create in the container.

ADefaulEnabled

  

Default enabled status if the log group is created.

Function result

Pointer to the TLazLoggerLogGroup instance with the specified name.


Version 4.0 Generated 2025-05-03 Home