{
    "name": "Logger",
    "id": "logger",
    "author": "Flatboard Team",
    "email": "contact@flatboard.org",
    "website": "https://flatboard.org",
    "version": "1.1.7",
    "update_url": "api/plugins/logger",
    "date": "2026-07-06",
    "license": "GPL3",
    "requires": {
        "flatboard": ">=5.6.0"
    },
    "active": "1",
    "priority": 40,
    "class": "App\\Plugins\\Logger\\LoggerPlugin",
    "main": "LoggerPlugin.php",
    "plugin": {
        "webhook_url": "",
        "discussion_created": "1",
        "discussion_updated": "1",
        "discussion_deleted": "1",
        "post_created": "1",
        "post_updated": "1",
        "post_deleted": "1",
        "user_registered": "1",
        "user_updated": "1",
        "user_deleted": "1",
        "category_created": "1",
        "category_updated": "1",
        "category_deleted": "1",
        "tag_created": "1",
        "tag_updated": "1",
        "tag_deleted": "1",
        "report_created": "1",
        "ban_created": "1",
        "ban_removed": "1"
    },
    "form_config": {
        "form_id": "logger_config",
        "form_title": "form_config.form_title",
        "submit_text": "form_config.submit_text",
        "fields": {
            "webhook_url": {
                "type": "url",
                "label": "form_config.fields.webhook_url.label",
                "description": "form_config.fields.webhook_url.description",
                "default": "",
                "placeholder": "https://example.com/webhook",
                "category": "webhook"
            },
            "discussion_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.discussion.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "discussion_updated": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.discussion.updated",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "discussion_deleted": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.discussion.deleted",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "post_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.post.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "post_updated": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.post.updated",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "post_deleted": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.post.deleted",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "user_registered": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.user.registered",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "user_updated": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.user.updated",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "user_deleted": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.user.deleted",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "category_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.category.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "category_updated": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.category.updated",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "category_deleted": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.category.deleted",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "tag_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.tag.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "tag_updated": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.tag.updated",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "tag_deleted": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.tag.deleted",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "report_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.report.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "ban_created": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.ban.created",
                "default": "0",
                "value": "1",
                "category": "evenements"
            },
            "ban_removed": {
                "type": "checkbox",
                "label": "form_config.fields.enabled_events.options.ban.removed",
                "default": "0",
                "value": "1",
                "category": "evenements"
            }
        },
        "categories": {
            "webhook": "form_config.categories.webhook",
            "evenements": "form_config.categories.evenements"
        }
    }
}