eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZDebugSetting

class eZDebugSetting

Provides conditional debug output

This works as a wrapper for the eZDebug class by checking some conditions defined in site.ini before writing the message. The condition must be true for the message to be written.

It will check the debug.ini file and first see if conditions are enabled globally by reading DebugSettings/ConditionDebug. If true if will then see if the condition exists in the GeneralCondition group, if so it will use it for condition check. If it doesn't exists generally it will check it specifically according to the message type for instance ErrorCondition, DebugCondition etc.

Example of debug.ini: [DebugSettings] ConditionDebug=enabled

[GeneralCondition] my-flag=enabled other-flag=disabled

[ErrorCondition] bad-name-flag=disabled