Record a warning message in the warnings log (warnings.txt)
Example
// Log an warning message to warnings.txt log
$log->warning("This is a warning");
Usage
// basic usage
$wire = $log->warning(string $text);
// usage with all arguments
$wire = $log->warning(string $text, $flags = 0);
Arguments
Name | Type(s) | Description |
---|---|---|
text | string | Text to save in the log |
flags (optional) | int, bool | Specify boolean true to also display the warning interactively (admin only). |
Return value
Wire
WireLog
API reference based on ProcessWire core version 3.0.236