Class LogWriter

    • Constructor Detail

      • LogWriter

        public LogWriter​(long cPtr,
                         boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(LogWriter obj)
      • delete

        public void delete()
      • flush

        public void flush()
        Flush method
      • setTabLevel

        public void setTabLevel​(int tabLevel)
        Set the tab level
      • write

        public void write​(java.lang.String str)
        Writes str to the log
        Parameters:
        str - [in] message to write
      • write

        public void write​(Message msg)
        Writes msg to the log

        Default behavior is to use write(const std::string&) for the standard
        streaming representation of msg.

        Parameters:
        msg - [in] message to write
      • writeln

        public void writeln​(java.lang.String str)
        Writes str as a line

        By default writeln writes str followed by a '\n'. However, logs
        are free to implement a line change differently.
      • streamOperator

        public LogWriter streamOperator​(java.lang.String str)
        specialized stream operator
        2
      • streamOperator

        public LogWriter streamOperator​(Message msg)
        Write Message to log.
        Parameters:
        msg - [in] the message.
        Returns:
        a reference to this LogWriter for chaining of stream operators.