public function log($message, $logLevel, $logGroup = null)
{
$time = time();
$group = $logGroup;
if ($this->group !== null) {
$group = $this->group;
if ($logGroup !== null) {
$group .= ' ' . $logGroup;
}
}
$callingFile = $this->findLogFile();
$file = $callingFile['file'];
if (isset($callingFile['classVariables'])) {
$file .= ' ' . $callingFile['classVariables'];
}
$line = $callingFile['line'];
$ip = Gpf_Http::getRemoteIp();
if ($ip == '') {
$ip = '127.0.0.1';
}
foreach ($this->loggers as $logger) {
if (!in_array($logger->getType(), $this->disabledTypes)) {
$logger->logMessage($time, $message, $logLevel, $group, $ip, $file, $line, $this->type);
}
}
}