Function dbg_error_log
Writes a debug message into the error log using printf syntax. If the first parameter is "ERROR" then the message will _always_ be logged. Otherwise, the first parameter is a "component" name, and will only be logged if $c->dbg["component"] is set to some non-null value.
If you want to see every log message then $c->dbg["ALL"] can be set, and then individual components can be set to zero to selectively ignore them. Additionally, log messages can be filtered by remote IP or username by populating the $c->dbg_filter["remoteIP"][] and $c->dbg_filter["authenticatedUser"][] arrays.
Package: awl\Utilities
Copyright: Catalyst IT Ltd, Morphoss Ltd <http://www.morphoss.com/>
License: GNU LGPL version 3 or later
Author: Andrew McMillan <andrew@mcmillan.net.nz>
Var: string $component The component to identify itself, or "ERROR", or "LOG:component"
Var: string $format A format string for the log message
Var: [string $parameter ...] Parameters for the format string.
Located at AWLUtilities.php
Copyright: Catalyst IT Ltd, Morphoss Ltd <http://www.morphoss.com/>
License: GNU LGPL version 3 or later
Author: Andrew McMillan <andrew@mcmillan.net.nz>
Var: string $component The component to identify itself, or "ERROR", or "LOG:component"
Var: string $format A format string for the log message
Var: [string $parameter ...] Parameters for the format string.
Located at AWLUtilities.php