public class LogManager extends Object
Constructor and Description |
---|
LogManager() |
Modifier and Type | Method and Description |
---|---|
static void |
debug_collection(boolean[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(Collection parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(double[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int mask,
boolean[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int mask,
Collection parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int mask,
double[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int mask,
int[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(int mask,
Object[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug_collection(Object[] parents)
print the log in
System .out and append the content of the collection to the end of the line if mask match the debug mask |
static void |
debug()
print the log in
System .out |
static void |
debug(boolean msg)
print the log in
System .out and append msg to the end of the line |
static void |
debug(double msg)
print the log in
System .out and append msg to the end of the line |
static void |
debug(int msg)
print the log in
System .out and append msg to the end of the line |
static void |
debug(int mask,
boolean msg)
print the log in
System .out and append msg to the end of the line if mask match the debug mask |
static void |
debug(int mask,
double msg)
print the log in
System .out and append msg to the end of the line if mask match the debug mask |
static void |
debug(int mask,
int msg)
print the log in
System .out and append msg to the end of the line if mask match the debug mask |
static void |
debug(int mask,
long msg)
print the log in
System .out and append msg to the end of the line if mask match the debug mask |
static void |
debug(int mask,
Object msg)
print the log in
System .out and append msg to the end of the line if mask match the debug mask |
static void |
debug(long msg)
print the log in
System .out and append msg to the end of the line |
static void |
debug(Object msg)
print the log in
System .out and append msg to the end of the line |
static Path |
deliverLogs()
Produce a zip file containing the log files and returns the path to the file
|
static void |
error(Object msg)
Log an error.
|
static int |
getVerboseLevel()
Returns the verbose level actually set
0 = log; 1= info; 2 = trace
|
static void |
info(Object msg)
Log an info.
|
static void |
printStackTrace()
print the last "levels" stack trace lines
|
static void |
printStackTrace(int levels) |
static void |
setDebug(int debug)
Give the mask of the log you want to display
|
static void |
setOut(PrintStream out)
Define the outputStream.
|
static void |
setVerbose(int verbose)
Set the verbose level of the logs
0 = log; 1= info; 2 = trace
|
static void |
trace(Object msg)
Log a trace.
|
static void |
trace(Object msg,
boolean line_info)
Log a trace.
|
public static void setVerbose(int verbose)
verbose
- public static int getVerboseLevel()
public static void error(Object msg)
msg
- the message to logpublic static void info(Object msg)
msg
- the message to logpublic static void trace(Object msg)
msg
- the message to logpublic static void trace(Object msg, boolean line_info)
msg
- the message to logline_info
- indicates if the information on the class name, method name and line number must be tracedpublic static Path deliverLogs()
public static void debug()
System
.outpublic static void debug(Object msg)
System
.out and append msg to the end of the linemsg
- the message to append at the end of the linepublic static void debug(int mask, Object msg)
System
.out and append msg to the end of the line if mask match the debug maskmsg
- the message to append at the end of the linepublic static void debug(int msg)
System
.out and append msg to the end of the linemsg
- the message to append at the end of the linepublic static void debug(int mask, int msg)
System
.out and append msg to the end of the line if mask match the debug maskmsg
- the message to append at the end of the linepublic static void debug(boolean msg)
System
.out and append msg to the end of the linemsg
- the message to append at the end of the linepublic static void debug(int mask, boolean msg)
System
.out and append msg to the end of the line if mask match the debug maskmsg
- the message to append at the end of the linepublic static void debug(double msg)
System
.out and append msg to the end of the linemsg
- the message to append at the end of the linepublic static void debug(int mask, double msg)
System
.out and append msg to the end of the line if mask match the debug maskmsg
- the message to append at the end of the linepublic static void debug(long msg)
System
.out and append msg to the end of the linemsg
- the message to append at the end of the linepublic static void debug(int mask, long msg)
System
.out and append msg to the end of the line if mask match the debug maskmsg
- the message to append at the end of the linepublic static void debug_collection(Collection parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int mask, Collection parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(Object[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int mask, Object[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int mask, int[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(double[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int mask, double[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(boolean[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void debug_collection(int mask, boolean[] parents)
System
.out and append the content of the collection to the end of the line if mask match the debug maskpublic static void printStackTrace()
public static void printStackTrace(int levels)
public static void setDebug(int debug)
debug
- the debug to setpublic static void setOut(PrintStream out)
out
- the outputStream to setCopyright © 2005–2020. All rights reserved.