Writes a $line to the log with a severity level of EMERG.

@param string $line Information to log
@param array|string $args
@return void
549681
public function logEmerg($line, $args = self::NO_ARGUMENTS)
	{
        $this->log($line, self::EMERG, $args);
    }
745802
public function setLine($line)
    {
        if ( ! is_string($line))
        {
            throw new InvalidArgumentException(
                'Expected a string, but got '.gettype($line)
            );
        }

        $this->line = $line;
    }
64937
public function messagePrintf(array $args = array())
    {
        $this->raw_msg = vsprintf($this->raw_msg, $args);
        $this->message = vsprintf($this->message, $args);
    }
776980
public function display($line)
    {
        $server = $this->username.'@'.$this->host;

        $lead = '<comment>['.$server.']</comment> <info>('.$this->name.')</info>';

        $this->getOutput()->writeln($lead.' '.$line);
    }
862758
public function writeError($line, $check, $message, $level = WARNING) {
		$msg = "\t" . $level . " Line:" . $line . ": " . $message . PHP_EOL;
		$this->_write($msg);
	}
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);
	}
430985
private function notify($line)
    {
        $observers = $this->observers;

        foreach ($observers as $observer) {
            $this->delegate($observer, $line);
        }
    }
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;
    }
280634
public function setLine($line)
    {
        if ($line === null) {
            return;
        }
        $this->parts = $this->outer::translateCommandline($line);
    }
1284618
public function appendLines($lines, $indent = 0)
    {
        foreach ($lines as $line) {
            $this->appendLine($line, $indent);
        }
    }
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;
        }
    }
1201876
protected function processLine($line)
    {
        if ($line === '') {
            $this->handleBlankLine();
            return;
        }

        $this->justNewEntry = false;

        $data = $this->parseLine($line);

        if ($data['key'][0] === '#') {
            $this->handleComment($data);
            return;
        }

        $this->handleOtherCases($data, $line);
    }
781908
private function log($line, $log_level) 
	{
		// Write all events less than log verbosity
		if ($log_level <= $this->log_verbosity) {
			$line = $this->prepend($log_level) . $line . "\n";
			$this->writeLine($line);
		}
	}
627075
protected void println(String line) {
        if (output instanceof PrintStream) {
            ((PrintStream) output).println(line);
        } else {
            ((PrintWriter) output).println(line);
        }
    }
1109695
public function log($line, $level = 1)
    {
        // Check if logging is enabled
        if (!$this->_loggingEnabled)
            return false;

        // Check if the level is within the required level
        if (!$this->_isLoggingSet($level))
            return false;

        $dateTime = date("H:i:s", time());
        $line = "{$dateTime} [ICEPAY]: {$line}" . PHP_EOL;

        // Log to Screen
        if ($this->_logToScreen)
            echo "{$line} <br />";

        // Log to Hooked Class
        if ($this->_logToHook && $this->_logHookClass && $this->_logHookFunc) {
            $function = $this->_logHookFunc;
            $this->_logHookClass->$function($line);
        }


        // Log to Default File
        if ($this->_logToFile) {
            $file = $this->_loggingDirectory . DS . $this->_loggingFile;

            try {
                $fp = fopen($file, "a");
                fwrite($fp, $line);
                fclose($fp);
            } catch (Exception $e) {
                throw new Exception($e->getMessage());
            };
        }
    }
542715
public function logNotice($line, $args = self::NO_ARGUMENTS)
	{
        $this->log($line, self::NOTICE, $args);
    }
502053
def write_line(self, line=None, *args, **kwargs):
        
        if line is None:
            # Empty line
            self.write("\n")
        else:
            # Format the line, if arguments have been given
            if args or kwargs:
                line = line.format(*args, **kwargs)

            with self.__lock:
                # Write it
                self.write(line)
                try:
                    if line[-1] != "\n":
                        # Add the trailing new line
                        self.write("\n")
                except IndexError:
                    # Got an empty string
                    self.write("\n")

        self.flush()