Java Log Message log(final PrintStream logger, final String message)

Here you can find the source of log(final PrintStream logger, final String message)

Description

log

License

Open Source License

Declaration

public static void log(final PrintStream logger, final String message) 

Method Source Code


//package com.java2s;
import java.io.PrintStream;

public class Main {
    public static void log(final PrintStream logger, final String message) {
        final StringBuffer buf = new StringBuffer();
        buf.append("[MANTIS] ").append(message);
        logger.println(buf.toString());//from  w  w  w.  ja  v  a2  s.c o  m
    }
}

Related

  1. log(boolean console, boolean file)
  2. log(final PrintStream logger, final Object message)
  3. log(final String file, final String msg)
  4. log(final String message, final String file)
  5. log(int physicalId, String message)
  6. log(Object o, String msg)