Writes a $line to the log with a severity level of INFO. Any information
can be used here, or it could be used with E_STRICT errors

@param string $line Information to log
@param array|string $args
@return void
503001
public function logInfo($line, $args = self::NO_ARGUMENTS)
	{
        $this->log($line, self::INFO, $args);
    }
316374
public static function log(...$args)
    {
        if (sizeof($args) === 1) {
            $msg = is_scalar($args[0]) ? $args[0] : Debug::dump($args[0]);
        } else {
            $msg = Debug::dump($args);
        }

        $mt = explode(' ', microtime());

        if (is_resource(STDERR)) {
            fwrite(STDERR, '[PHPD] ' . $msg . "\n");
        }

        $msg = str_replace("\x01", $msg, date(strtr(Daemon::$config->logformat->value,
                ['%msg%' => "\x01", '\\u' => '\\u', 'u' => sprintf('%06d', $mt[0] * 1000000)]))) . "\n";

        if (Daemon::$logpointerAsync) {
            Daemon::$logpointerAsync->write($msg);
        } elseif (Daemon::$logpointer) {
            fwrite(Daemon::$logpointer, $msg);
        }
    }
613066
public function push($line)
    {
        if ($this->socket === null) {
            throw new \Erebot\IllegalActionException('Uninitialized socket');
        }

        if (strcspn($line, "\r\n") != strlen($line)) {
            throw new \Erebot\InvalidValueException(
                'Line contains forbidden characters'
            );
        }
        $this->sndQueue[] = $line;
    }
685052
public static void writeLine(BufferedWriter writer, String line) throws IOException {
        writer.write(line);
        writer.newLine();
    }
247850
protected function readEnvironmentVariable($line)
    {
        list($key, $value) = explode(':', substr($line, 4), 2);
        if (strncmp($key, 'arg_', 4) === 0) {
            $this->arguments[substr($key, 4)] = $value;
        } else {
            $this->variables[$key] = $value;
        }
    }
1018955
public function analyseUNH(array $line)
    {
        if (\count($line) < 3) {
            return;
        }

        $lineElement = $line[2];
        if (!\is_array($lineElement)) {
            $this->messageFormat = $lineElement;

            return;
        }

        $this->messageFormat = $lineElement[0];
        $this->messageDirectory = $lineElement[2];
    }
183885
protected function log(Args $args)
    {
        $message = sprintf("%s%s", $this->render($args), PHP_EOL);
        $this->logger->log($message, null, $this->registry->get());
    }
193653
protected void writeLine(final String line) {
		getContainer().getShell().getDisplay().syncExec(
			new Runnable() {
				public void run() {
					if (statusTextArea != null) {
						statusTextArea.setText(line + '\n' + statusTextArea.getText()); 
					}
				}
			}
		);
	}
664991
public function log($severity, $message, $file, $line, $exception=null, $trace=null) {
		if(!$this->isLogging())
			return;

		$context = [
			'exception' => $exception,
			'file' => $file,
			'line' => $line,
			'trace' => $trace,
		];
		$this->logger->log($severity, $message, $context);
	}
488371
function _writeln($line)
    {
        /* Add this line to our output buffer. */
        $this->_buffer[] = $line;

        /* Buffer the output until this page's headers have been sent. */
        if (!headers_sent()) {
            return;
        }

        /* If we haven't already opened the output window, do so now. */
        if (!$this->_opened && !$this->open()) {
            return;
        }

        /* Drain the buffer to the output window. */
        $this->_drainBuffer();
    }
1310307
protected function nl(int $lines = 1, int $writer = Output::STANDARD): void
	{
		$this->output->write(str_repeat(PHP_EOL, $lines), $writer);
	}
664737
public function mailLogging($line, $severity)
	{
		if (count($this->mailingList) > 0) {
		    $To = implode(', ', $this->mailingList);

			$Body			= $line;
			$Subject		= "[LOGGING] Severity: $severity";
			$CustomHeaders	= 'MIME-Version: 1.0' . "\r\n";
			$CustomHeaders	.= 'X-Priority: 1 (Highest)' . "\r\n";
			$CustomHeaders	.= 'X-MSMail-Priority: High' . "\r\n";
			$CustomHeaders	.= 'Importance: High' . "\r\n";
			$CustomHeaders 	.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
			
			@mail($To, $Subject, $Body, $CustomHeaders);
		}
	}
58281
public function writeCommand($command, $args = [])
    {
        if (OutputInterface::VERBOSITY_VERBOSE > $this->getOutput()->getVerbosity()) {
            return;
        }

        if (count($args)) {
            $outArr = [];
            foreach ($args as $arg) {
                if (is_array($arg)) {
                    $arg = array_map(
                        function ($value) {
                            return '\'' . $value . '\'';
                        },
                        $arg
                    );
                    $outArr[] = '[' . implode(', ', $arg) . ']';
                    continue;
                }

                $outArr[] = '\'' . $arg . '\'';
            }
            $this->getOutput()->writeln(' -- ' . $command . '(' . implode(', ', $outArr) . ')');

            return;
        }

        $this->getOutput()->writeln(' -- ' . $command);
    }
764934
public function writeLog($sLine)
    {
        $this->oLogger->line(' [' . $this->sModuleName . '->' . $this->sMethod . '] ' . $sLine);
    }
1000243
protected function writeArg($arg): void
    {
        if (is_string($arg)) {
            $this->protocol->writeString($arg);
        } elseif (is_object($arg)) {
            if (!$arg instanceof JavaType) {
                $msg = "Client failed to writeArg(), IllegalArgument 'arg:".get_class($arg)."' not a Java object, using NULL instead";
                $this->logger->error("[soluble-japha] $msg (".__METHOD__.')');
                //trigger_error($msg, E_USER_WARNING);
                $this->protocol->writeObject(null);
            } else {
                $this->protocol->writeObject($arg->get__java());
            }
        } elseif (null === $arg) {
            $this->protocol->writeObject(null);
        } elseif (is_bool($arg)) {
            $this->protocol->writeBoolean($arg);
        } elseif (is_int($arg)) {
            $this->protocol->writeLong($arg);
        } elseif (is_float($arg)) {
            $this->protocol->writeDouble($arg);
        } elseif (is_array($arg)) {
            $wrote_begin = false;
            foreach ($arg as $key => $val) {
                if (is_string($key)) {
                    if (!$wrote_begin) {
                        $wrote_begin = true;
                        $this->protocol->writeCompositeBegin_h();
                    }
                    $this->protocol->writePairBegin_s($key);
                    $this->writeArg($val);
                    $this->protocol->writePairEnd();
                } else {
                    if (!$wrote_begin) {
                        $wrote_begin = true;
                        $this->protocol->writeCompositeBegin_h();
                    }
                    $this->protocol->writePairBegin_n($key);
                    $this->writeArg($val);
                    $this->protocol->writePairEnd();
                }
            }
            if (!$wrote_begin) {
                $this->protocol->writeCompositeBegin_a();
            }
            $this->protocol->writeCompositeEnd();
        }
    }
619772
public function line($line = '', $params = null)
    {
        if (empty($params)) {
            return parent::line($line);
        }

        //  We have some parameters, sub 'em in or the unicorns will die.
        $line = parent::line($line);

        if ($line !== false) {

            if (is_array($params)) {

                $line = vsprintf($line, $params);

            } else {

                $line = sprintf($line, $params);
            }
        }

        return $line;
    }
329308
public function addErrorOutput($line)
    {
        $this->lastOutputTime = microtime(true);

        fseek($this->stderr, 0, SEEK_END);
        fwrite($this->stderr, $line);
        fseek($this->stderr, $this->incrementalErrorOutputOffset);
    }