Java Log Message logRawToConsole(String msg)

Here you can find the source of logRawToConsole(String msg)

Description

Writes a plain one-line text message to the console.

License

Open Source License

Parameter

Parameter Description
msg The message to be written

Declaration

static void logRawToConsole(String msg) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import java.io.PrintStream;

public class Main {
    private static final PrintStream out = System.out;
    private static boolean sendConsoleOutputToTwsLog = false;

    /**/*w  ww .  ja va  2s .  com*/
     * Writes a plain one-line text message to the console.
     * @param msg
     * The message to be written
     */
    static void logRawToConsole(String msg) {
        getOutStream().println(msg);
    }

    static PrintStream getOutStream() {
        if (sendConsoleOutputToTwsLog) {
            return System.out;
        } else {
            return out;
        }
    }
}

Related

  1. logLine(String filePath, String line)
  2. logMessage(String message)
  3. LogMsg(PrintStream logger, String msg)
  4. logMsg(String msg)
  5. LogMsg(String s)
  6. logString(String logtext)
  7. logThis(String id)