Configure notifications

To configure notifications:

  1. On your local workstation, change to your project directory.

  2. In the .magento.env.yaml file in your project root, add your messaging system settings, including preferred notification Log levels.

    For example, to configure both Slack and email configurations, use the following:

    log:
      slack:
        token: "<your-slack-token>"
        channel: "<your-slack-channel>"
        username: "SlackHandler"
        min_level: "info"
      email:
        to: <your-email>
        from: <your-email>
        subject: "Log notification from Adobe Commerce"
        min_level: "notice"
    
    NOTE
    Adobe Commerce on cloud infrastructure only sends emails during the deployment phase.
  3. Commit and push your changes to the remote server.

    git -A && git commit -m "Configure build/deploy notifications"
    
    git push origin <branch-name>
    

Example Slack configuration

The following example shows a Slack-only configuration:

log:
  slack:
    token: "<your-slack-token>"
    channel: "<your-slack-channel>"
    username: "SlackHandler"
    min_level: "info"
  • token—Your Slack user token. Your user token authorizes Adobe Commerce on cloud infrastructure to send messages.
  • channel—Name of the Slack channel Adobe Commerce on cloud infrastructure sends notifications.
  • username—Username Adobe Commerce on cloud infrastructure uses to send notification messages in Slack.
  • min_level—Minimum log level for notification messages. We recommend using info.

Example email configuration

The following example shows an email-only configuration:

NOTE
Adobe Commerce on cloud infrastructure only sends emails during the deployment phase.
log:
  email:
    to: <your-email>
    from: <your-email>
    subject: "Log notification from Adobe Commerce"
    min_level: "notice"
  • to—Email address Adobe Commerce on cloud infrastructure sends notification messages.
  • from—Email address for sending notification messages to recipients.
  • subject—Description of the email.
  • min_level—Minimum log level for notification messages. We recommend using notice or warning.
Previous pagePost-deploy
Next pageLog handlers

Commerce