Package laas.openrobots.ontology.helpers
Class Logger
java.lang.Object
laas.openrobots.ontology.helpers.Logger
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
colorPrint
(Logger.Colors c, String msg) static void
colorPrintLn
(Logger.Colors c, String msg) static void
cr()
static void
static void
static void
static <E extends com.hp.hpl.jena.rdf.model.Statement>
voidstatic void
demo
(String string, PartialStatement stmt) static <E extends com.hp.hpl.jena.rdf.model.RDFNode>
voiddemo_nodes
(String string, Set<E> nodes) static String
static void
static void
Outputs server standard messages.static void
Outputs server standard messages.static void
log
(String msg, VerboseLevel level) Outputs server messages, formatting them according to their importance.static void
log
(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.
-
Field Details
-
display_timestamp
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
GetTimestamp
-
log
Outputs server standard messages. Callslog(String, VerboseLevel)
with aVerboseLevel.INFO
level of verbosity.- Parameters:
msg
- The message to display.- See Also:
-
log
Outputs server standard messages. Callslog(String, VerboseLevel, boolean)
with aVerboseLevel.INFO
level of verbosity.- Parameters:
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.- See Also:
-
log
Outputs server messages, formatting them according to their importance.- Parameters:
msg
- The message to display.level
- The level of importance of the message.- See Also:
-
log
Outputs server messages, formatting them according to their importance.- Parameters:
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.- See Also:
-
verbosityMin
Tests if a given level of verbosity is superior or egal to the current, application-wide, level of verbosity.- Parameters:
level
- A level of verbosity- Returns:
- true if the server is configured to be at least as verbose as the given level of verbosity.
-
cr
public static void cr() -
colorPrint
-
colorPrintLn
-
blingblingPower
public static void blingblingPower() -
info
-
debug
-
demo
-
demo
-
demo
-
demo
-
demo_nodes
-
agent
-