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


ChoiceType of PrestaShopLogger Log levels

Type options

Option Type Default value Description

Code example

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

Preview example

LogSeverityChoiceType rendered in form example