Documentation

Notification
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Constants

IMPORTANCE_HIGH  = 'high'
IMPORTANCE_LOW  = 'low'
IMPORTANCE_MEDIUM  = 'medium'
IMPORTANCE_URGENT  = 'urgent'
LEVELS  = [\Psr\Log\LogLevel::DEBUG => 100, \Psr\Log\LogLevel::INFO => 200, \Psr\Log\LogLevel::NOTICE => 250, \Psr\Log\LogLevel::WARNING => 300, \Psr\Log\LogLevel::ERROR => 400, \Psr\Log\LogLevel::CRITICAL => 500, \Psr\Log\LogLevel::ALERT => 550, \Psr\Log\LogLevel::EMERGENCY => 600]

Properties

$channels  : array<string|int, mixed>
$content  : string
$emoji  : string
$exception  : mixed
$exceptionAsString  : string
$importance  : string
$subject  : string

Methods

__construct()  : mixed
channels()  : $this
content()  : $this
emoji()  : $this
fromThrowable()  : self
getChannels()  : array<string|int, mixed>
getContent()  : string
getEmoji()  : string
getException()  : FlattenException|null
getExceptionAsString()  : string
getImportance()  : string
getSubject()  : string
importance()  : $this
importanceFromLogLevelName()  : $this
subject()  : $this
getDefaultEmoji()  : string
computeExceptionAsString()  : string

Constants

IMPORTANCE_MEDIUM

public mixed IMPORTANCE_MEDIUM = 'medium'

IMPORTANCE_URGENT

public mixed IMPORTANCE_URGENT = 'urgent'

LEVELS

private mixed LEVELS = [\Psr\Log\LogLevel::DEBUG => 100, \Psr\Log\LogLevel::INFO => 200, \Psr\Log\LogLevel::NOTICE => 250, \Psr\Log\LogLevel::WARNING => 300, \Psr\Log\LogLevel::ERROR => 400, \Psr\Log\LogLevel::CRITICAL => 500, \Psr\Log\LogLevel::ALERT => 550, \Psr\Log\LogLevel::EMERGENCY => 600]

Properties

$channels

private array<string|int, mixed> $channels = []

$exceptionAsString

private string $exceptionAsString = ''

$importance

private string $importance = self::IMPORTANCE_HIGH

Methods

__construct()

public __construct([string $subject = '' ][, array<string|int, mixed> $channels = [] ]) : mixed
Parameters
$subject : string = ''
$channels : array<string|int, mixed> = []

channels()

public channels(array<string|int, mixed> $channels) : $this
Parameters
$channels : array<string|int, mixed>
Return values
$this

content()

public content(string $content) : $this
Parameters
$content : string
Return values
$this

emoji()

public emoji(string $emoji) : $this
Parameters
$emoji : string
Return values
$this

fromThrowable()

public static fromThrowable(Throwable $exception[, array<string|int, mixed> $channels = [] ]) : self
Parameters
$exception : Throwable
$channels : array<string|int, mixed> = []
Return values
self

getContent()

public getContent() : string
Return values
string

getEmoji()

public getEmoji() : string
Return values
string

getExceptionAsString()

public getExceptionAsString() : string
Return values
string

getImportance()

public getImportance() : string
Return values
string

getSubject()

public getSubject() : string
Return values
string

importance()

public importance(string $importance) : $this
Parameters
$importance : string
Return values
$this

importanceFromLogLevelName()

public importanceFromLogLevelName(string $level) : $this
Parameters
$level : string

A PSR Logger log level name

Return values
$this

subject()

public subject(string $subject) : $this
Parameters
$subject : string
Return values
$this

getDefaultEmoji()

protected getDefaultEmoji() : string
Return values
string

computeExceptionAsString()

private computeExceptionAsString(Throwable $exception) : string
Parameters
$exception : Throwable
Return values
string

        
On this page

Search results