io.vertx.core.logging

## Class Logger

- java.lang.Object
- - io.vertx.core.logging.Logger

-     public class Logger
      extends Object

  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 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 the value is `io.vertx.core.logging.impl.Log4JLogDelegateFactory`, 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.

  Author:
    Tim Fox

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Logger(LogDelegate delegate)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Logger

          public Logger(LogDelegate delegate)

  - ### Method Detail

    - #### isInfoEnabled

          public boolean isInfoEnabled()

    - #### isDebugEnabled

          public boolean isDebugEnabled()

    - #### isTraceEnabled

          public boolean isTraceEnabled()

    - #### fatal

          public void fatal(Object message)

    - #### fatal

          public void fatal(Object message,
                            Throwable t)

    - #### error

          public void error(Object message)

    - #### error

          public void error(Object message,
                            Throwable t)

    - #### warn

          public void warn(Object message)

    - #### warn

          public void warn(Object message,
                           Throwable t)

    - #### info

          public void info(Object message)

    - #### info

          public void info(Object message,
                           Throwable t)

    - #### debug

          public void debug(Object message)

    - #### debug

          public void debug(Object message,
                            Throwable t)

    - #### trace

          public void trace(Object message)

    - #### trace

          public void trace(Object message,
                            Throwable t)

Copyright © 2015. All Rights Reserved.