Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

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