2 package org
.de
.metux
.log
;
4 import org
.de
.metux
.util
.Terminal
;
6 public class LoggerTerm
implements ILogger
8 public int loglevel
= LoglevelID
.DEBUG
;
10 final public void setLogLevel(int ll
)
15 final public void error(String stage
, String message
)
17 if (loglevel
>= LoglevelID
.ERROR
)
20 "{TERM_FG_RED} (ERROR) [{TERM_FG_BLUE}"+
22 "{TERM_FG_RED}] {TERM_FG_YELLOW}"+
28 final public void warning(String stage
, String message
)
30 if (loglevel
>= LoglevelID
.WARNING
)
33 "{TERM_FG_CYAN} (WARN) [{TERM_FG_BLUE}"+
41 final public void debug(String stage
, String message
)
43 if (loglevel
>= LoglevelID
.DEBUG
)
46 "{TERM_FG_YELLOW} (DEBUG) [{TERM_FG_BLUE}"+
48 "{TERM_FG_YELLOW}] {TERM_NORMAL}"+
54 final public void notice(String stage
, String message
)
56 if (loglevel
>= LoglevelID
.NOTICE
)
59 "{TERM_FG_GREEN}(NOTICE) [{TERM_FG_BLUE}"+
61 "{TERM_FG_GREEN}] {TERM_FG_YELLOW}"+