<?php

namespace GriffinForms\Admin\Choices;

class General extends \GriffinForms\Admin\Choices\Format
{
    /**
     * Choices for log_message_types (values correspond to logger categories used in the codebase).
     * Returned as raw keys; labels are provided via Language->getText().
     */
    protected function getLogMessageTypes()
    {
        // Confirmed in project usage: success, error, info, warning
        return array('success', 'error', 'info', 'warning');
    }


    /**
     * Choices for log_retention (how many most-recent entries to keep).
     */
    protected function getLogRetention()
    {
        return array(
            'latest_1000',
            'latest_5000',
            'latest_10000',
            'latest_50000',
            'latest_100000',
            'all',
        );
    }
}