public class PortLogger
extends org.vertx.java.core.logging.Logger
The component port logger provides a basic Vert.x logger that sends messages to an output port. This allows components to potentially subscribe to error logs from other components.
The PortLogger extends the Vert.x Logger, and
all messages logged to the port are logged to an underlying Vert.x
Logger as well, so there's no need to use two loggers in
order to log messages to log files.
Port loggers are a core element of each component, so users should never need to contstruct port loggers themselves.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_PORT
debug is the output port for logging debug messages. |
static String |
ERROR_PORT
error is the output port for logging error messages. |
static String |
FATAL_PORT
fatal is the output port for logging fatal messages. |
static String |
INFO_PORT
info is the output port for logging info messages. |
static String |
TRACE_PORT
trace is the output port for logging trace messages. |
static String |
WARN_PORT
warn is the output port for logging warning messages. |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message) |
void |
debug(Object message,
Throwable t) |
void |
error(Object message) |
void |
error(Object message,
Throwable t) |
void |
fatal(Object message) |
void |
fatal(Object message,
Throwable t) |
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
void |
trace(Object message) |
void |
trace(Object message,
Throwable t) |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
public static final String FATAL_PORT
fatal is the output port for logging fatal messages.public static final String ERROR_PORT
error is the output port for logging error messages.public static final String WARN_PORT
warn is the output port for logging warning messages.public static final String INFO_PORT
info is the output port for logging info messages.public static final String DEBUG_PORT
debug is the output port for logging debug messages.public static final String TRACE_PORT
trace is the output port for logging trace messages.public boolean isInfoEnabled()
isInfoEnabled in class org.vertx.java.core.logging.Loggerpublic boolean isDebugEnabled()
isDebugEnabled in class org.vertx.java.core.logging.Loggerpublic boolean isTraceEnabled()
isTraceEnabled in class org.vertx.java.core.logging.Loggerpublic void fatal(Object message)
fatal in class org.vertx.java.core.logging.Loggerpublic void fatal(Object message, Throwable t)
fatal in class org.vertx.java.core.logging.Loggerpublic void error(Object message)
error in class org.vertx.java.core.logging.Loggerpublic void error(Object message, Throwable t)
error in class org.vertx.java.core.logging.Loggerpublic void warn(Object message)
warn in class org.vertx.java.core.logging.Loggerpublic void warn(Object message, Throwable t)
warn in class org.vertx.java.core.logging.Loggerpublic void info(Object message)
info in class org.vertx.java.core.logging.Loggerpublic void info(Object message, Throwable t)
info in class org.vertx.java.core.logging.Loggerpublic void debug(Object message)
debug in class org.vertx.java.core.logging.Loggerpublic void debug(Object message, Throwable t)
debug in class org.vertx.java.core.logging.Loggerpublic void trace(Object message)
trace in class org.vertx.java.core.logging.LoggerCopyright © 2013-2014. All Rights Reserved.