public class Logger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Logger.Colors |
Modifier and Type | Field and Description |
---|---|
static java.lang.Boolean |
display_timestamp |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static void |
agent(java.lang.String id) |
static void |
blingblingPower() |
static void |
colorPrint(Logger.Colors c,
java.lang.String msg) |
static void |
colorPrintLn(Logger.Colors c,
java.lang.String msg) |
static void |
cr() |
static void |
debug(java.lang.String msg) |
static <E extends com.hp.hpl.jena.rdf.model.RDFNode> |
demo_nodes(java.lang.String string,
java.util.Set<E> nodes) |
static void |
demo(java.lang.String string,
PartialStatement stmt) |
static <E extends com.hp.hpl.jena.rdf.model.Statement> |
demo(java.lang.String string,
java.util.Set<E> stmts) |
static void |
demo(java.lang.String string,
com.hp.hpl.jena.rdf.model.Statement stmt) |
static void |
demo(java.lang.String label,
java.lang.String value,
boolean ok) |
static java.lang.String |
GetTimestamp() |
static void |
info(java.lang.String msg) |
static void |
log(java.lang.String msg)
Outputs server standard messages.
|
static void |
log(java.lang.String msg,
boolean withPrefix)
Outputs server standard messages.
|
static void |
log(java.lang.String msg,
VerboseLevel level)
Outputs server messages, formatting them according to their importance.
|
static void |
log(java.lang.String msg,
VerboseLevel level,
boolean withPrefix)
Outputs server messages, formatting them according to their importance.
|
static boolean |
verbosityMin(VerboseLevel level)
Tests if a given level of verbosity is superior or egal to the current,
application-wide, level of verbosity.
|
public static java.lang.String GetTimestamp()
public static void log(java.lang.String msg)
log(String, VerboseLevel)
with a VerboseLevel.INFO
level of verbosity.msg
- The message to display.log(String, VerboseLevel)
public static void log(java.lang.String msg, boolean withPrefix)
log(String, VerboseLevel, boolean)
with a VerboseLevel.INFO
level of verbosity.msg
- The message to display.withPrefix
- Set it to false when a looging info is expected to
continue the last line of log and you don't want a prefix (like the date)
to be added.log(String, VerboseLevel)
public static void log(java.lang.String msg, VerboseLevel level)
msg
- The message to display.level
- The level of importance of the message.The list of verbosity levels.
public static void log(java.lang.String msg, VerboseLevel level, boolean withPrefix)
msg
- The message to display.level
- The level of importance of the message.withPrefix
- Set it to false when a looging info is expected to
continue the last line of log and you don't want a prefix (like the date)
to be added.The list of verbosity levels.
public static boolean verbosityMin(VerboseLevel level)
level
- A level of verbositypublic static void cr()
public static void colorPrint(Logger.Colors c, java.lang.String msg)
public static void colorPrintLn(Logger.Colors c, java.lang.String msg)
public static void blingblingPower()
public static void info(java.lang.String msg)
public static void debug(java.lang.String msg)
public static <E extends com.hp.hpl.jena.rdf.model.Statement> void demo(java.lang.String string, java.util.Set<E> stmts)
public static void demo(java.lang.String string, com.hp.hpl.jena.rdf.model.Statement stmt)
public static void demo(java.lang.String string, PartialStatement stmt)
public static void demo(java.lang.String label, java.lang.String value, boolean ok)
public static <E extends com.hp.hpl.jena.rdf.model.RDFNode> void demo_nodes(java.lang.String string, java.util.Set<E> nodes)
public static void agent(java.lang.String id)
ORO is a part of the OpenRobots framework.
openrobots@laas.fr
LAAS-CNRS 2009-2011