|
|
| __construct ($name="root", $pDevMode=false) |
| |
| | debug (... $msg) |
| |
|
| info (... $msg) |
| |
|
| warning (... $msg) |
| |
|
| notice (... $msg) |
| |
|
| error (... $msg) |
| |
Definition at line 9 of file logging.i.
◆ debug()
(3/6/18) - Debug prints should not make it to production. The intent of debug is purely for debugging development code. If you would like to dump extra information to the log to better track down error in production then use either info or error
Definition at line 52 of file logging.i.
log_format($level,... $args)
◆ log_format()
| Logger::log_format |
( |
|
$level, |
|
|
|
$args |
|
) |
| |
|
protected |
args can be a variable number of messages. ONLY 1 then this is the only message and there is no extra formatting
1
This option will format the string, based on the printf format, which should be the first argument in that array ** NOTE using [] is short notation for declaring an array For example $logger->info("%s %s", "Print this String", "Then this string");
Definition at line 25 of file logging.i.
37 if (count($args) == 1) {
38 $logMsg = array_shift($args);
45 $fmt = array_shift($args);
46 $logMsg = vsprintf($fmt, $args);
49 return $this->log($level, $logMsg);
◆ $devMode
devMode – Is the environment currently set to be in dev mode? {true, false (default)}
Definition at line 15 of file logging.i.
The documentation for this class was generated from the following file: