本文整理匯總了PHP中WireData::___log方法的典型用法代碼示例。如果您正苦於以下問題:PHP WireData::___log方法的具體用法?PHP WireData::___log怎麽用?PHP WireData::___log使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WireData
的用法示例。
在下文中一共展示了WireData::___log方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ___log
/**
* 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);
}