public class Logger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Logger.CustomLogger
Configures and holds (static) classes for our custom logging system.
|
Modifier and Type | Field and Description |
---|---|
static java.io.PrintStream |
LOG_PRINT_STREAM
Open print stream that writes to the log file.
|
static java.util.logging.Logger |
LOGGER
Logging class for use by other classes to log though this custom logging scheme.
|
Modifier and Type | Method and Description |
---|---|
static void |
consoleLog()
Write blank line with program location to the console log.
|
static void |
consoleLog(java.lang.String message,
java.lang.Object... parameters)
Write message to console log with optional formatting and program location.
|
static java.lang.String |
currentMethod()
Returns program location where call to this method is located.
|
static void |
logException(java.lang.Throwable e)
Write exception message to DS console window and exception stack trace to
log file.
|
public static final java.io.PrintStream LOG_PRINT_STREAM
public static final java.util.logging.Logger LOGGER
public static java.lang.String currentMethod()
public static void consoleLog(java.lang.String message, java.lang.Object... parameters)
message
- Message with optional format specifiers for listed parameters. Use '%s' for formatting. It makes the parameters appear in the String where the '%s' are in order of input.parameters
- Parameter list matching format specifiers.public static void consoleLog()
public static void logException(java.lang.Throwable e)
e
- The exception to log.