public abstract class Pipeline2Logger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipeline2Logger.LEVEL
Logger levels.
|
static class |
Pipeline2Logger.Pipeline2ConsoleLogger
Default logging implementation that logs to the console.
|
| Constructor and Description |
|---|
Pipeline2Logger() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
debug(String message)
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
|
abstract void |
debug(String message,
Exception e) |
abstract void |
error(String message)
The ERROR level designates error events that might still allow the application to continue running.
|
abstract void |
error(String message,
Exception e) |
abstract void |
fatal(String message)
The FATAL level designates very severe error events that will presumably lead the application to abort.
|
abstract void |
fatal(String message,
Exception e) |
abstract Pipeline2Logger.LEVEL |
getLevel()
Gets the logger level.
|
abstract void |
info(String message)
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
|
abstract void |
info(String message,
Exception e) |
static Pipeline2Logger |
logger()
Get the currently used Pipeline2Logger instance in use.
|
abstract boolean |
logsLevel(Pipeline2Logger.LEVEL level)
Returns whether or not messages of the given level will be logged.
|
abstract void |
setLevel(Pipeline2Logger.LEVEL level)
Set the logger level.
|
static void |
setLogger(Pipeline2Logger logger)
Set the Pipeline2Logger instance to be used for logging.
|
abstract void |
trace(String message)
The TRACE Level designates finer-grained informational events than the DEBUG level.
|
abstract void |
trace(String message,
Exception e) |
abstract void |
warn(String message)
The WARN level designates potentially harmful situations.
|
abstract void |
warn(String message,
Exception e) |
public static Pipeline2Logger logger()
public static void setLogger(Pipeline2Logger logger)
public abstract void setLevel(Pipeline2Logger.LEVEL level)
public abstract Pipeline2Logger.LEVEL getLevel()
public abstract boolean logsLevel(Pipeline2Logger.LEVEL level)
public abstract void trace(String message)
public abstract void debug(String message)
public abstract void info(String message)
public abstract void warn(String message)
public abstract void error(String message)
public abstract void fatal(String message)
Copyright © 2012–2016 The DAISY Consortium. All rights reserved.