ターミナルにログを表示する

@param String $msg  ログメッセージ
@param String $title  タイトル
@return void
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;
    }
374035
public function printHTMLHeader($title)
    {
        $this->_htmlFilterOutput(
            str_replace(
                '__TITLE__', $title,
                (empty($this->_output_header)
                ? '<html><head><title>__TITLE__</title></head><body><h1>__TITLE__</h1>'
                : $this->_output_header)
            )
        );
    }
274453
public function enqueueMessage($text, $title='', $type=NULL) {
	
		$message		= new \stdClass();
		$message->text	= $text;
		$message->title	= ($title ? $title : 'Info');
		$message->type	= ($type  ? $type  : 'info');
	
		$this->messages[] = $message;
	
	}
1218956
public function setTitle( $title ) {
		if ( $this->title !== $title ) {
			$this->title = $title;
			$this->updateTitle();
		}

		return $this;
	}
1293236
public function removeRoleByTitle(string $title)
    {

        $role = RoleModel::where('title', $title)->first();
        $this->removeRole($role->id);
    }
350137
final public function enqueueMessage($text, $title='', $type=NULL) {
		
		$this->app->enqueueMessage($text, $title, $type);
		
	}
972150
private function logSection($title = "")
    {
        $this->logger->info("---------------------------");
        if (!empty($title)) {
            $this->logger->info($title);
        }
    }
656338
protected function setTitleAttribute($title)
    {
        $this->attributes['title'] = $title;
        $this->slug = Str::slug($title);
    }
154556
protected function logInfo(string $msg)
    {
        $this->logger->info('CMD: ' . $msg);
        $this->out->writeln("<info>$msg<info>");
    }
855242
protected function debugSection($title, $message)
    {
        if (is_array($message) or is_object($message)) {
            $message = stripslashes(json_encode($message));
        }
        $this->debug("[$title] $message");
    }
53308
public function outputTitle($title, $primary = true)
    {
        $l = strlen($title);
        if ($primary) {
            $this->output->outputLine(str_repeat('-', $l), 'title');
        }
        $this->output->outputLine($title, $primary ? 'title' : 'subtitle');
        if ($primary) {
            $this->output->outputLine(str_repeat('-', $l), 'title');
        }
    }
461472
protected function setTitle($title)
    {
        if (0 === strlen(trim($title))) {
            throw new \InvalidArgumentException('Provided title cannot be empty');
        }

        $this->title = (string) $title;
    }
1287725
public function setTitle($title)
	{
		$title = strip_tags($title);

		$this->title_session = $title;

		$this->title = $title . $this->getDefault('separator') . $this->getDefault('title');
	}
778738
def set_title(self, msg):
        
        self.s.move(0, 0)
        self.overwrite_line(msg, curses.A_REVERSE)
402973
public function setTitle( $title, $mode = 'set', $separator = ' | ' )
	{
		if( $mode == 'append' || $mode === 1 )
			$title	= $this->title.$separator.$title;
		else if( $mode == 'prepend' || $mode === -1 )
			$title	= $title.$separator.$this->title;
		$this->title	= $title;
	}
44190
public function setGroup($title, $path) {
		$path = rtrim(realpath($path), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
		
		$this->groups[(string) $title] = $path;
	}
778983
public function consoleLog($msg, $level = 1)
    {
        $msg = str_replace("\r", '', $msg);
        $msg = explode("\n", $msg);
        foreach ($msg as $line) {
            if (strlen($line) < 1) {
                continue;
            }
            $this->send(
                'VERBOSE "' . str_replace('"', '\\"', $line) . '" ' . $level
            );
        }
    }