class \mpf\loggers\EmailLogger

class \mpf\loggers\EmailLogger

Inheritance \mpf\loggers\Logger«\mpf\base\Object
Implements -
Uses -
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/loggers/EmailLogger.php

-no description found-

Attributes
public string $mailerClass = "mpf\helpers\MailHelper"

Class used to send emails;

public string $emailAddress

Developer email address

public string $emailPrefix

Email subject prefix; If none is set then app short name will be used;

public string $emailTitle = "Application Log"

Final title that apppears after info in subject;

public int $maxEmailsPerRun = 1

-no description found-

public bool $dieWhenMaxEmailsIsReached = true

-no description found-

protected mixed $_emailsSent

-no description found-

public array $visibleLevels = ["emergency","critical","alert","error","warning","notice"]

-no description found-

Methods

public mixed getLevelMessageColor (mixed $lvl)

  • $lvl

    -no description found-

-no description found-

public array getLevelTranslations (string $lvl = null)

  • $lvl

    -no description found-

-no description found-

public array getLogs ()

No return from this;

public null log (mixed $level, string $message, array $context = [])

  • $level

    -no description found-

  • $message

    -no description found-

  • $context

    -no description found-

Logs with an arbitrary level.

protected mixed getSubject (mixed $level, mixed $class)

  • $level

    -no description found-

  • $class

    -no description found-

-no description found-

protected mixed getMessage (mixed $level, mixed $message, mixed $context)

  • $level

    -no description found-

  • $message

    -no description found-

  • $context

    -no description found-

-no description found-

protected mixed getContextLines (mixed $context, mixed $prefix = "")

  • $context

    -no description found-

  • $prefix

    -no description found-

-no description found-

protected string getArrayList (mixed $list, string $separator = "; ")

  • $list

    -no description found-

  • $separator

    -no description found-

-no description found-