com.jproxy.proxy
Class Log
java.lang.Object
com.jproxy.proxy.Log
- Direct Known Subclasses:
- Log4jLogger
- public class Log
- extends java.lang.Object
Constructor Summary |
Log()
|
Method Summary |
static void |
debug(java.lang.String msg)
|
static void |
error(java.lang.String msg)
|
static void |
fatal(java.lang.String msg)
|
int |
getLevel()
|
static void |
info(java.lang.String msg)
|
static boolean |
isEnable(int userLevel)
|
void |
log(java.lang.String message,
int userLevel)
Default implementation of logging. |
void |
setLevel(java.lang.String levelStr)
|
static void |
setLogger(Log _log)
|
static void |
warning(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static Log log
FATAL
public static final int FATAL
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
WARN
public static final int WARN
- See Also:
- Constant Field Values
INFO
public static final int INFO
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
Log
public Log()
setLogger
public static void setLogger(Log _log)
isEnable
public static boolean isEnable(int userLevel)
log
public void log(java.lang.String message,
int userLevel)
- Default implementation of logging.
All output goes to System.out
For custom implementation the method must be overrden.
- Parameters:
message
- - Message StringuserLevel
-
setLevel
public void setLevel(java.lang.String levelStr)
getLevel
public int getLevel()
fatal
public static void fatal(java.lang.String msg)
error
public static void error(java.lang.String msg)
warning
public static void warning(java.lang.String msg)
info
public static void info(java.lang.String msg)
debug
public static void debug(java.lang.String msg)
Copyright © JProxy LLC. All Rights Reserved.