public class Log
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LOGLEVEL
Indicates the current global level of logging
|
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
print(java.lang.String text,
int loglevel)
Prints the text to the standard output if the current logging level (
) is smaller or equal than the given loglevel parameter. |
static void |
print(java.lang.String text,
int loglevel,
boolean withTimestamp)
Prints the text to the standard output if the current logging level (
) is smaller or equal than the given loglevel parameter. |
static void |
println(java.lang.String text,
int loglevel)
Prints the text to the standard output then terminates the line if the current logging level (
) is smaller or equal than the given loglevel parameter. |
static void |
println(java.lang.String text,
int loglevel,
boolean withTimestamp)
Prints the text to the standard output then terminates the line if the current logging level (
) is smaller or equal than the given loglevel parameter. |
public static void print(java.lang.String text, int loglevel)
LOGLEVEL
) is smaller or equal than the given loglevel parameter.text
- The String
to be printed.loglevel
- The logging level of this output.public static void println(java.lang.String text, int loglevel)
LOGLEVEL
) is smaller or equal than the given loglevel parameter.text
- The String
to be printed.loglevel
- The logging level of this output.public static void print(java.lang.String text, int loglevel, boolean withTimestamp)
LOGLEVEL
) is smaller or equal than the given loglevel parameter.
Can also add a timestamp to the output.text
- The String
to be printed.loglevel
- The logging level of this output.withTimestamp
- adds a timestamp to the outputpublic static void println(java.lang.String text, int loglevel, boolean withTimestamp)
LOGLEVEL
) is smaller or equal than the given loglevel parameter.
Can also add a timestamp to the output.text
- The String
to be printed.loglevel
- The logging level of this output.withTimestamp
- adds a timestamp to the output