public class Logger extends Object
- message string should always contain the class name and the method name: Logger.msg(1,"ItemFact::createDir() - LifeCycle DB created"); - use meaningfull abbreviation and also use the dash to separate the 'header' from the message! - each method should start with this 'method signature' debug: Logger.msg(1,"ItemFact::createDir() - path:" + path);
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleTCPIPServer |
mConsole |
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLogStream(PrintStream console,
int logLevel) |
static void |
closeConsole() |
static void |
debug(int logLevel,
String msg) |
static void |
debug(String msg)
Deprecated.
|
static void |
die(String msg) |
static boolean |
doLog(int logLevel) |
static void |
error(String msg) |
static void |
error(Throwable ex) |
static int |
getConsolePort() |
static int |
initConsole(String id) |
static void |
msg(int level,
String msg)
Use Logger.message to report information that will be useful for debugging a release
|
static void |
msg(String msg) |
static void |
removeAll() |
static void |
removeLogStream(PrintStream console) |
static void |
warning(String msg) |
protected static SimpleTCPIPServer mConsole
public static boolean doLog(int logLevel)
@Deprecated public static void debug(String msg)
msg - -
the string to write to the console, or log file if specified in cmd linepublic static void debug(int logLevel,
String msg)
public static void msg(int level,
String msg)
level - -
log level of this message. If the current log level has been on the cmd line to be less that this number, the log message
will not be displayedmsg - -
the string to write to the console, or log file if specified in cmd linepublic static void msg(String msg)
public static void error(String msg)
public static void error(Throwable ex)
public static void warning(String msg)
public static void die(String msg)
public static void addLogStream(PrintStream console, int logLevel)
console - public static void removeLogStream(PrintStream console)
console - public static int initConsole(String id)
public static int getConsolePort()
public static void closeConsole()
public static void removeAll()
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.