class \mpf\loggers\FileLogger

class \mpf\loggers\FileLogger

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/FileLogger.php

-no description found-

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

-no description found-

public string $filePath

Path for file where to save the logs Can use key words like {MODULE}, {CONTROLLER} for web apps and {APP_ROOT} for all.

protected mixed $_path

-no description found-

protected mixed $_writeFailure = false

-no description found-

Methods

public mixed getLogs ()

-no description found-

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.