$logwarning()

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

NameType(s)Description
$textstring

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


$log methods and properties

API reference based on ProcessWire core version 3.0.251