Log the message if the logger is configured to log from this producer AND EXIT ANYWAY
@param $producer the source of logging ( one of the SPLog::PRODUCER_* values )
@param $msg the actual message
@param bool $object
181708
public function bye($producer, $msg, $object = false) {
        $this->log($producer, $msg, $object); echo("\n");die();
    }
93897
protected function log(bool $success) : void
    {
        if ($success) {
            $this->stdout('Success!', Console::FG_GREEN, Console::BOLD);
        } else {
            $this->stderr('Error!', Console::FG_RED, Console::BOLD);
        }
        $this->stdout(PHP_EOL);
    }
510786
public static function checkNumberField($field, $msg)
    {
        if ((StringUtils::isEmpty($field) === false) && !is_numeric($field)) {
            throw new MsgException($msg);
        }
    }
1017882
protected function warning ($msg) {
		if (self::$loggingAndExceptions) {
			\MvcCore\Debug::BarDump('[' . get_class($this) . '] ' . $msg, \MvcCore\IDebug::DEBUG);
		}
	}
1304663
protected function logDebug($msg)
    {
        $logger = $this->client->getAsteriskLogger();
        $ani = $this->client->getChannelVariables()->getCallerIdName();
        $dnis = $this->client->getChannelVariables()->getDNIS();
        $logger->debug("NodeController: {$this->name}: $ani -> $dnis: $msg");
    }
1286111
public function log($msg, $runlevel = self::LEVEL_INFO) {
		$time = time();
		#$this->data[] = array($this->runlevel, $msg, $time);
		if($this->printout and $runlevel <= $this->runlevel) {
			$this->writeLine($msg, $runlevel, $time);
		}
	}
185971
public final function log ($msg, $title = null)
    {
        if (is_null($title)) {
            $log = '  '.pack('c',0x1B)."[1m". $msg.pack('c',0x1B)."[0m".PHP_EOL;

        } else {
            $log = '  '.pack('c',0x1B)."[1;32m". $title.':'. pack('c',0x1B)."[0m".'  '.
                pack('c',0x1B)."[1m". $msg. pack('c',0x1B)."[0m".PHP_EOL;
        }

        echo $log;
    }
206272
public static function log($msg)
    {
        $msg = $msg . "\n";
        if (!self::$daemonize) {
            self::safeEcho($msg);
        }
        file_put_contents((string)self::$logFile, date('Y-m-d H:i:s') . ' ' . 'pid:' . getmypid() . ' ' . $msg, FILE_APPEND | LOCK_EX);
    }
1130542
public static function log(string $msg, array $data = [], int $level = self::VERB_DEBUG, array $opts = []): void
    {
        $levelName  = self::LEVEL_NAMES[$level] ?? 'INFO';
        $colorName  = self::LEVEL2TAG[$level] ?? 'info';
        $taggedName = ColorTag::add($levelName, $colorName);

        $userOpts = [];
        foreach ($opts as $n => $v) {
            if (\is_numeric($n) || \strpos($n, '_') === 0) {
                $userOpts[] = "[$v]";
            } else {
                $userOpts[] = "[$n:$v]";
            }
        }

        $optString = $userOpts ? ' ' . \implode(' ', $userOpts) : '';

        self::write(\sprintf(
            '%s [%s]%s %s %s',
            \date('Y/m/d H:i:s'),
            $taggedName,
            $optString,
            \trim($msg),
            $data ? \PHP_EOL . \json_encode($data, \JSON_UNESCAPED_SLASHES | \JSON_PRETTY_PRINT) : ''
        ));
    }
146726
public static function log($msg){
        Timer::add(1, function() use ($msg) {
            Worker::log($msg);
        }, null, false);
    }
208066
public static function write($time='', $object='CALL', $message='')
    {
      if (!(self::$on)) {
        return FALSE;
      }

      if (self::$log_file || !isset(self::$log_file)) {
        self::open();
      }


      /** who was the logger called from if we are running on a server **/
      /** this is easy with $_SERVER['PHP_SELF'], if running independatly, **/
      /** we need introspection **/
      if (isset($_SERVER['PHP_SELF'])) {
        $file = realpath($_SERVER['PHP_SELF']);
      } else {
        /** to implement **/
        /** show directory until optimal introspection is found **/
        $file = realpath(__DIR__);
      }
      

      if (is_int($time)) {
        $date = new \DateTime;
        $date->setTimestamp($time);
        $time = $date->format("M/m/y:H:i:s");
      }


      $cli = Client::get();

      $fulltext = "$file ($object) - APPLICATION:" . $cli->application_id . " [$time] - $message" . "\n";

      fwrite(self::$log_file, $fulltext); 
    }
1352096
public static function debug($msg)
    {
        if ($msg === 'open' || $msg === 'close') {
            self::$_debugOpen = $msg === 'open';
        } elseif (self::$_debugOpen === true) {
            $key = self::$_processKey === null ? '' : '[' . self::$_processKey . '] ';
            echo '[DEBUG] ', date('H:i:s '), $key, implode('', func_get_args()), self::CRLF;
        }
    }
323261
public function logAssertValidated($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_ASSERT_VALIDATED, $message, $object);
    }
323562
public function executeMsg(JobMessage $msg, ExecutionContext $execution = null)
    {
        if (null === $execution) {
            $execution = $this->createJobExecutionFromMessage($msg);
        }

        return $msg->execute($execution, $this->msgFactory);
    }
1226485
protected function tryLog($msg, $tries = 0)
    {
        if ((bool)@fwrite($this->stream, $msg))
            return;

        if (0 < $tries)
        {
            trigger_error(sprintf('%s - Unable to log message: "%s"', get_called_class(), $tries, $msg));
            return;
        }

        $this->attemptStreamRecovery();

        $this->tryLog($msg, ++$tries);
    }
1019228
protected function log($level, $msg, $context = [])
    {
        $this->log[$level][] = $msg;
        \Log::log($level, $msg, $context);
    }
558961
protected function logError(string $msg)
    {
        $this->logger->error('CMD: ' . $msg);
        $this->out->writeln("<error>$msg<error>");
    }