\Pop\Log\WriterMail

Mail log writer class

Summary

Methods
Properties
Constants
writeLog()
writeCustomLog()
getContext()
__construct()
No public properties found
No constants found
No protected methods found
$emails
$options
N/A
No private methods found
No private properties found
N/A

Properties

$emails

$emails : array

Array of emails in which to send the log messages

Type

array

$options

$options : array

Array of mail-specific options, i.e. subject, headers, etc.

Type

array

Methods

writeLog()

writeLog(mixed  $level, string  $message, array  $context = array()) : \Pop\Log\Writer\Mail

Write to the log

Parameters

mixed $level
string $message
array $context

Returns

\Pop\Log\Writer\Mail

writeCustomLog()

writeCustomLog(string  $content) : \Pop\Log\Writer\Mail

Write to a custom log

Parameters

string $content

Returns

\Pop\Log\Writer\Mail

getContext()

getContext(array  $context = array()) : string

Get context for log

Parameters

array $context

Returns

string

__construct()

__construct(mixed  $emails, array  $options = array()) : \Pop\Log\Writer\Mail

Constructor

Instantiate the Mail writer object

Parameters

mixed $emails
array $options

Throws

\Pop\Log\Writer\Exception

Returns

\Pop\Log\Writer\Mail