Top Description Fields Constructors Methods
io.vertx.core.logging

public Class Logger

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
io.vertx.core.spi.logging.LogDelegate

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

This class allows us to isolate all our logging dependencies in one place. It also allows us to have zero runtime 3rd party logging jar dependencies, since we default to JUL by default.

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 io.vertx.core.logging.Log4j2LogDelegateFactory, for SLF4J the value is io.vertx.core.logging.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.

Author
Tim Fox

Field Summary

Modifier and TypeField and Description
pack-priv final LogDelegate

Constructor Summary

AccessConstructor and Description
public
Logger(final LogDelegate delegate)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

Method Summary

Modifier and TypeMethod and Description
public void
debug(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
debug(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
debug(final Object message, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
debug(final Object message, final Throwable t, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
error(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
error(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
error(final Object message, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
error(final Object message, final Throwable t, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
fatal(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
fatal(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public LogDelegate

Returns:

the delegate instance sending operations to the underlying logging framework
getDelegate
()
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
info(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
info(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
info(final Object message, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
info(final Object message, final Throwable t, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public boolean
isDebugEnabled()
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public boolean
isInfoEnabled()
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public boolean
isTraceEnabled()
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public boolean
isWarnEnabled()
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
trace(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
trace(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
trace(final Object message, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
trace(final Object message, final Throwable t, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
warn(final Object message)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
warn(final Object message, final Throwable t)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
warn(final Object message, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

public void
warn(final Object message, final Throwable t, final Object... objects)
Deprecated see https://github.com/eclipse-vertx/vert.x/issues/2774

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
pack-priv final LogDelegate delegate

Constructor Detail

Loggerback to summary
public Logger(final LogDelegate delegate)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated

Method Detail

debugback to summary
public void debug(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
debugback to summary
public void debug(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
debugback to summary
public void debug(final Object message, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
debugback to summary
public void debug(final Object message, final Throwable t, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
errorback to summary
public void error(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
errorback to summary
public void error(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
errorback to summary
public void error(final Object message, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
errorback to summary
public void error(final Object message, final Throwable t, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
fatalback to summary
public void fatal(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
fatalback to summary
public void fatal(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
getDelegateback to summary
public LogDelegate getDelegate()

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Returns:LogDelegate

the delegate instance sending operations to the underlying logging framework

Annotations
@Deprecated
infoback to summary
public void info(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
infoback to summary
public void info(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
infoback to summary
public void info(final Object message, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
infoback to summary
public void info(final Object message, final Throwable t, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
isDebugEnabledback to summary
public boolean isDebugEnabled()

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
isInfoEnabledback to summary
public boolean isInfoEnabled()

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
isTraceEnabledback to summary
public boolean isTraceEnabled()

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
isWarnEnabledback to summary
public boolean isWarnEnabled()

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
traceback to summary
public void trace(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
traceback to summary
public void trace(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
traceback to summary
public void trace(final Object message, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
traceback to summary
public void trace(final Object message, final Throwable t, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
warnback to summary
public void warn(final Object message)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
warnback to summary
public void warn(final Object message, final Throwable t)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
warnback to summary
public void warn(final Object message, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages
warnback to summary
public void warn(final Object message, final Throwable t, final Object... objects)

Deprecated

see https://github.com/eclipse-vertx/vert.x/issues/2774

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
if the logging backend does not support parameterized messages