Java Error Print printError(String s)

Here you can find the source of printError(String s)

Description

print Error

License

Open Source License

Declaration

public static void printError(String s) 

Method Source Code

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

public class Main {
    public static boolean ERROR = true;
    public static long time;

    public static void printError(String s) {
        if (ERROR)
            System.out.printf("[ERROR] [%05d] %s%n", timeSince(), s);
    }//from w  w  w.j av a 2 s.  com

    public static long timeSince() {
        return (System.currentTimeMillis() - time) / 1000;
    }
}

Related

  1. printError(String error)
  2. printError(String message)
  3. printError(String message, Exception e, boolean pst)
  4. printError(String msg)
  5. printError(String msg, Exception exception, boolean quit)
  6. printError(String s)
  7. printErrorAndExit(String message)
  8. printErrorFooter(String content)
  9. printErrorInfo(Object e)