@Deprecated public class Logger extends Object
By default logging will occur using JUL (Java-Util-Logging). The logging configuration file (logging.properties)
used by JUL will taken from the default logging.properties in the JDK installation if no java.util.logging.config.file
system
property is set.
If you would prefer to use Log4J 2 or SLF4J instead of JUL then you can set a system property called
vertx.logger-delegate-factory-class-name
to the class name of the delegate for your logging system.
For Log4J 2 the value is Log4j2LogDelegateFactory
, for SLF4J the value
is SLF4JLogDelegateFactory
. You will need to ensure whatever jar files
required by your favourite log framework are on your classpath.
Keep in mind that logging backends use different formats to represent replaceable tokens in parameterized messages. As a consequence, if you rely on parameterized logging methods, you won't be able to switch backends without changing your code.
Constructor and Description |
---|
Logger(LogDelegate delegate)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
debug(Object message,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
debug(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
debug(Object message,
Throwable t,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
error(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
error(Object message,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
error(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
error(Object message,
Throwable t,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
fatal(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
fatal(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
LogDelegate |
getDelegate()
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
info(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
info(Object message,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
info(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
info(Object message,
Throwable t,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
boolean |
isDebugEnabled()
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
boolean |
isInfoEnabled()
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
boolean |
isTraceEnabled()
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
boolean |
isWarnEnabled()
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
trace(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
trace(Object message,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
trace(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
trace(Object message,
Throwable t,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
warn(Object message)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
warn(Object message,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
warn(Object message,
Throwable t)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
void |
warn(Object message,
Throwable t,
Object... objects)
Deprecated.
see https://github.com/eclipse-vertx/vert.x/issues/2774
|
@Deprecated public Logger(LogDelegate delegate)
@Deprecated public boolean isWarnEnabled()
@Deprecated public boolean isInfoEnabled()
@Deprecated public boolean isDebugEnabled()
@Deprecated public boolean isTraceEnabled()
@Deprecated public void fatal(Object message)
@Deprecated public void fatal(Object message, Throwable t)
@Deprecated public void error(Object message)
@Deprecated public void error(Object message, Throwable t)
@Deprecated public void error(Object message, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void error(Object message, Throwable t, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void warn(Object message)
@Deprecated public void warn(Object message, Throwable t)
@Deprecated public void warn(Object message, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void warn(Object message, Throwable t, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void info(Object message)
@Deprecated public void info(Object message, Throwable t)
@Deprecated public void info(Object message, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void info(Object message, Throwable t, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void debug(Object message)
@Deprecated public void debug(Object message, Throwable t)
@Deprecated public void debug(Object message, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void debug(Object message, Throwable t, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void trace(Object message)
@Deprecated public void trace(Object message, Throwable t)
@Deprecated public void trace(Object message, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public void trace(Object message, Throwable t, Object... objects)
UnsupportedOperationException
- if the logging backend does not support parameterized messages@Deprecated public LogDelegate getDelegate()
Copyright © 2023 Eclipse. All rights reserved.