public class Logging extends Object
Modifier and Type | Field and Description |
---|---|
static int |
errorsOnly
Logging levels that may be chosen from for the level variable below.
|
static int |
full
Logging levels that may be chosen from for the level variable below.
|
static int |
inputViolations
Logging levels that may be chosen from for the level variable below.
|
static int |
level
The current logging level used throughout the GenDevs code.
|
static int |
none
Logging levels that may be chosen from for the level variable below.
|
Constructor and Description |
---|
Logging() |
Modifier and Type | Method and Description |
---|---|
static void |
log(String message)
Writes the given message to stdout.
|
static void |
log(String message,
int ifLevelAtLeast)
Writes the given message to stdout if the current logging level is
at least as high as the one given.
|
static void |
set(int out)
The current logging level used throughout the GenDevs code.
|
public static final int full
public static final int none
public static final int errorsOnly
public static final int inputViolations
public static int level
public static void set(int out)
out
- the level of warningpublic static void log(String message)
message
- The message to log.public static void log(String message, int ifLevelAtLeast)
message
- The message to log.ifLevelAtLeast
- At least how high the current logging
level must be for this message to be logged.Copyright © 2017–2019 UniversitĂ© CĂ´te d'Azur, CNRS, I3S. All rights reserved.