/** * Log a message for this class * * Message is saved to a log file in ProcessWire's logs path to a file with * the same name as the class, converted to hyphenated lowercase. * * @param string $str Text to log, or omit to just return the name of the log * @param array $options Optional extras to include: * - url (string): URL to record the with the log entry (default=auto-detect) * - name (string): Name of log to use (default=auto-detect) * @return WireLog|null * */ public function ___log($str = '', array $options = array()) { if (empty($options['name'])) { $options['name'] = 'file-validator'; } return parent::___log($str, $options); }