Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

LogSeverityChoiceType

ChoiceType of PrestaShopLogger Log levels

Type options

Option Type Default value Description

Code example

$builder->add('logs_by_email', LogSeverityChoiceType::class, [
    'placeholder' => $this->trans(
        'None',
        'Admin.Global'
    ),
    'label' => $this->trans(
        'Minimum severity level',
        'Admin.Advparameters.Feature'
    ),
    'help' => $this->trans(
        'Click on "None" to disable log alerts by email or enter the recipients of these emails in the following field.',
        'Admin.Advparameters.Help'
    ),
])

Preview example

LogSeverityChoiceType rendered in form example