imported from svn
[metux-java.git] / log / LoggerASCII.java
blob82a4797994029a278b6d9cf6e000f8d66f7eda5b
2 package org.de.metux.log;
4 public class LoggerASCII implements ILogger
6 public int loglevel = LoglevelID.DEBUG;
8 final public void setLogLevel(int ll)
10 loglevel = ll;
13 final public void error(String stage, String message)
15 if (loglevel >= LoglevelID.ERROR)
16 System.err.println(" (ERROR) ["+stage+"] "+message);
19 final public void warning(String stage, String message)
21 if (loglevel >= LoglevelID.WARNING)
22 System.err.println(" (WARN) ["+stage+"] "+message);
25 final public void debug(String stage, String message)
27 if (loglevel >= LoglevelID.DEBUG)
28 System.err.println(" (DEBUG) ["+stage+"] "+message);
31 final public void notice(String stage, String message)
33 if (loglevel >= LoglevelID.NOTICE)
34 System.err.println("\033[1;32m(NOTICE) ["+stage+"] "+message);