abstract class \mpf\interfaces\LogAwareObjectInterface

abstract class \mpf\interfaces\LogAwareObjectInterface

Inheritance -
Implements -
Uses -
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/interfaces/LogAwareObjectInterface.php

-no description found-

Attributes
No attributes found for this class!
Methods

public abstract mixed addLogger (\mpf\loggers\Logger $logger)

  • $logger

    An insantiated object for selected engine;

Add a new logging engine; Usage example:

$this->addLogger(MyCustomLogger::get());

public abstract mixed alert (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log alert messages!

public abstract mixed critical (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log critical messages!

public abstract mixed debug (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log debug messages;

public abstract mixed emergency (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log emergency messages;

public abstract mixed error (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log error messages;

public abstract mixed info (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log info messages;

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

  • $level

    -no description found-

  • $message

    -no description found-

  • $context

    -no description found-

Log messages;

public abstract mixed notice (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log notice messages;

public abstract mixed warning (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Log warning messages

public abstract mixed collectLogs (int $max = 300, int $level = null)

  • $max

    Max number of logs

  • $level

    Max level;

Return list of logs from all Logger objects; Some logger engines may not return any logs per instance, instead store them all and have an extra method to return all;