Skip to content

SlackHandler, how to print the value of $record['message'] #871

@riccardomessineo

Description

@riccardomessineo

I am using Monolog in Lumen. I can't figure out how to get just the message of error... i think the problem is here:

        if ($this->formatter) {
            $message = $this->formatter->format($record);
        } else {
            $message = $record['message'];
        }

$this->formatter is never empty... I tried pushing a null formatter, but it doesn't work.
Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions