Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NativeMailerHandler from Monolog #197

Merged
merged 5 commits into from
Oct 20, 2020
Merged

Conversation

Mardl
Copy link
Contributor

@Mardl Mardl commented Oct 15, 2020

Add handler for NativeMailerLog from Issue #191.
Example to use in your own loggers.json handler entry point

{
    "id": "import.logger.factory.handler.native.mail.log",
    "formatter": {
        "id": "import.logger.factory.formatter.line",
        "params": {
            "format": "[%datetime%] %channel%.%level_name%: %message% %context% %extra%",
            "date-format": "Y-m-d H:i:s",
            "allow-inline-line-breaks": true,
            "ignore-empty-context-and-extra": true
        }
    },
    "params": {
        "to": [
            "[email protected]"
        ],
        "subject": "Something Went Wrong",
        "from": "[email protected]",
        "level": "error",
        "bubble": true,
        "maxColumnWidth": 500
    }
}

@Mardl Mardl changed the title Add native mailer handler Add NativeMailerHandler from Monolog Oct 15, 2020
@wagnert wagnert merged commit 5e765a2 into master Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants