$log->message() method

Record an informational or 'success' message in the message log (messages.txt)


// Log message to messages.txt log
$log->message("User updated profile"); 


// basic usage
$wire = $log->message(string $text);

// usage with all arguments
$wire = $log->message(string $text, $flags = 0);



Message to log

flags (optional)bool, int

Specify boolean true to also have the message displayed interactively (admin only).

Return value

Wire WireLog

$log methods and properties

API reference based on ProcessWire core version 3.0.228

Latest news

  • ProcessWire Weekly #498
    The 498th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 25 November 2023
  • Using date range fields in ProcessWire
    This week we'll take a detailed look at the newest addition to the ProFields set of modules: the Date Range Fieldtype and Inputfield.
    Blog / 24 November 2023
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.