Output message to terminal.
9540
def output_message(text, file=sys.stderr):
    """"""
    if file.encoding is None:
        # If the output file does not support Unicode, encode it to a byte
        # string. On some machines, this occurs when Python is redirecting to
        # file (or piping to something like Vim).
        text = text.encode('utf-8')

    print(text, file=file)
333696
public function outputMessages()
    {

        // Simple Wrapper for OutputActions::$render->renderMessages
        if (php_sapi_name() === 'cli' &&
            !empty($this->messages)
        ) {
            // Output the messages on the shell.
            $result = "\n\nkreXX messages\n";
            $result .= "==============\n";
            foreach ($this->messages as $message) {
                $result .= "$message\n";
            }

            echo $result . "\n\n";
        }

        // Return the rendered messages.
        return $this->pool->render->renderMessages($this->messages);
    }
837125
def message(self, msg='', level=1, tab=0):
        ''''''
        if self.verbosity >= level:
            self.stdout.write('{}{}'.format('    ' * tab, msg))
872414
def build_output(self, fout):
        
        fout.write('\n'.join([s for s in self.out]))
675893
def output(self):
        

        self.lock.acquire()
        text = output_db('', self.db)
        self.lock.release()
        return text
1268845
def out(msg, error=False):
        "  "
        pipe = stdout
        if error:
            pipe = stderr
            msg = color_msg(msg, "warning")

        pipe.write("%s\n" % msg)
1249465
def _output(self, message, verbosity, exact, stream):
        
        if exact:
            if self.config.verbosity == verbosity:
                stream.write(message + "\n")
        else:
            if self.config.verbosity >= verbosity:
                stream.write(message + "\n")
600791
def notify(msg, msg_type=0, t=None):
    msg = msg.replace('"', '\\"')
    ""
    if platform.system() == "Darwin":
        command = notify_command_osx(msg, msg_type, t)
    else:
        command = notify_command_linux(msg, t)

    try:
        subprocess.call(command)
        return True
    except OSError as e:
        return False
1263769
def Output(self):
    """"""
    self.Open()
    self.Header()
    self.Body()
    self.Footer()
906196
def write(self, *messages):
        """"""

        for i in self.graph.outputs_of(BEGIN):
            for message in messages:
                self[i].write(message)
1226515
def _outputMessages(self, warnings, node):
        
        if not warnings:
            # No warnings were found
            return
        for warning in warnings:
            linenum, offset, msgidInPyCodeStyle, text = warning

            if text.startswith(msgidInPyCodeStyle):
                # If the PyCodeStyle code is at the start of the text, trim it out
                text = text[len(msgidInPyCodeStyle) + 1:]

            if msgidInPyCodeStyle in self.mapPyCodeStyleMessages:
                msgid, patternArguments = self.mapPyCodeStyleMessages[msgidInPyCodeStyle]
                if (not self.pycodestyleEnabled and
                    msgid in self.standardPyCodeStyleMessages):
                    continue

                arguments = []
                if patternArguments:
                    matchResult = re.search(patternArguments, text)
                    if matchResult:
                        arguments = matchResult.groups()
                self.add_message(msgid, line=linenum, args=arguments, node=node)
626439
def run_output(self):
        """"""
        for f in logdissect.output.__formats__:
            ouroutput = self.output_modules[f]
            ouroutput.write_output(self.data_set['finalized_data'],
                    args=self.args)
            del(ouroutput)

        # Output to terminal if silent mode is not set:
        if not self.args.silentmode:
            if self.args.verbosemode:
                print('\n==== ++++ ==== Output: ==== ++++ ====\n')
            for line in self.data_set['finalized_data']['entries']:
                print(line['raw_text'])
229297
def write_line(self, message):
        """"""

        self.out.write(message + "\n")
        self.out.flush()
794539
def fout(self, output, newline=True):
        """"""
        if output is not None:
            self.out(self.fmt(output), newline=newline)
1162441
def output(self, msg, indent, status=None):
        
        color = None
        if self.use_color:
            color = get_color_from_status(status)
        print_indent_msg(msg, indent, color)
1301862
def write_message(msg, indent=False, mtype='standard', caption=False):
    """"""
    if (mtype == 'debug' and config.DEBUG) or (mtype != 'debug' and config.VERBOSE) or mtype == 'error':
        message(msg, indent=indent, mtype=mtype, caption=caption)
755556
def show_messages(self):
        """"""
        string = ''
        if self.static_message is not None:
            string += self.static_message.to_text()

        for message in self.dynamic_messages:
            string += message.to_text()

        print(string)