Java Log Message log(PrintWriter logger, String text)

Here you can find the source of log(PrintWriter logger, String text)

Description

log

License

Open Source License

Declaration

public static void log(PrintWriter logger, String text) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.PrintWriter;

public class Main {
    public static void log(PrintWriter logger, String text) {
        if (logger != null) {
            logger.println(text);/*from w ww  .  j a  va 2s  .c  o m*/
            logger.flush();
        }
        System.out.println(text);
    }
}

Related

  1. log(final String file, final String msg)
  2. log(final String message, final String file)
  3. log(int physicalId, String message)
  4. log(Object o, String msg)
  5. LOG(Object... msgs)
  6. Log(String filename, String message)
  7. log(String fmt, Object... args)
  8. log(String line)
  9. log(String message)