PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

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