org.apache.geode.i18n

## Interface LogWriterI18n

- Deprecated.

      @Deprecated
      public interface LogWriterI18n

  Defines methods available to clients that want to write a log message to their GemFire distributed system log file.

  Instances of this interface can be obtained by calling `DistributedSystem.getLogWriter()`.

  For any logged message the log file will contain:

  - The message's level.
  - The time the message was logged.
  - The id of the thread that logged the message.
  - The message itself which can be a string and/or an exception including the exception's stack trace.

  A message always has a level. Logging levels are ordered. Enabling logging at a given level also enables logging at higher levels. The higher the level the more important and urgent the message.

  The levels, in descending order, are:

  - `severe` (highest value) is a message level indicating a serious failure. In general `severe` messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to information managers.
  - `error` In general `error` messages should describe events that are of considerable importance but will not prevent normal program execution. They should be reasonably intelligible to end users and to information managers. They are weaker than `severe` and stronger than `warning`.
  - `warning` is a message level indicating a potential problem. In general `warning` messages should describe events that will be of interest to end users or information managers, or which indicate potential problems.
  - `info` is a message level for informational messages. Typically `info` messages should be reasonably significant and should make sense to end users and system administrators.
  - `config` is a message level for static configuration messages. `config` messages are intended to provide a variety of static configuration information, to assist in debugging problems that may be associated with particular configurations.
  - `fine` is a message level providing tracing information. In general the `fine` level should be used for information that will be broadly interesting to developers. This level is for the lowest volume, and most important, tracing messages.
  - `finer` indicates a fairly detailed tracing message. Logging calls for entering, returning, or throwing an exception are traced at the `finer` level.
  - `finest` (lowest value) indicates a highly detailed tracing message. In general the `finest` level should be used for the most voluminous detailed tracing messages.

  For each level methods exist that will request a message, at that level, to be logged. These methods are all named after their level.

  For each level a method exists that returns a boolean indicating if messages at that level will currently be logged. The names of these methods are of the form: level `Enabled`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `config(StringId msgID)` Deprecated. Writes a message to this writer.
    `void` | `config(StringId msgID, java.lang.Object param)` Deprecated. Writes a message to this writer.
    `void` | `config(StringId msgID, java.lang.Object[] params)` Deprecated. Writes a message to this writer.
    `void` | `config(StringId msgID, java.lang.Object[] params, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `config(StringId msgID, java.lang.Object param, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `config(StringId msgID, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `config(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `configEnabled()` Deprecated.
    `LogWriter` | `convertToLogWriter()` Deprecated. A mechanism for accessing the abstraction layer used for a plain logger.
    `void` | `entering(java.lang.String sourceClass, java.lang.String sourceMethod)` Deprecated. Log a method entry.
    `void` | `error(StringId msgID)` Deprecated. Writes a message to this writer.
    `void` | `error(StringId msgID, java.lang.Object param)` Deprecated. Writes a message to this writer.
    `void` | `error(StringId msgID, java.lang.Object[] params)` Deprecated. Writes a message to this writer.
    `void` | `error(StringId msgID, java.lang.Object[] params, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `error(StringId msgID, java.lang.Object param, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `error(StringId msgID, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `error(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `errorEnabled()` Deprecated.
    `void` | `exiting(java.lang.String sourceClass, java.lang.String sourceMethod)` Deprecated. Log a method return.
    `void` | `fine(java.lang.String msg)` Deprecated. Writes a message to this writer.
    `void` | `fine(java.lang.String msg, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `fine(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `fineEnabled()` Deprecated.
    `void` | `finer(java.lang.String msg)` Deprecated. Writes a message to this writer.
    `void` | `finer(java.lang.String msg, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `finer(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `finerEnabled()` Deprecated.
    `void` | `finest(java.lang.String msg)` Deprecated. Writes a message to this writer.
    `void` | `finest(java.lang.String msg, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `finest(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `finestEnabled()` Deprecated.
    `java.util.logging.Handler` | `getHandler()` Deprecated. Returns a 1.4 logging handler that can be used to direct application output to this GemFire logger using the standard JDK logger APIs.
    `void` | `info(StringId msgID)` Deprecated. Writes a message to this writer.
    `void` | `info(StringId msgID, java.lang.Object param)` Deprecated. Writes a message to this writer.
    `void` | `info(StringId msgID, java.lang.Object[] params)` Deprecated. Writes a message to this writer.
    `void` | `info(StringId msgID, java.lang.Object[] params, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `info(StringId msgID, java.lang.Object param, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `info(StringId msgID, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `info(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `infoEnabled()` Deprecated.
    `void` | `severe(StringId msgID)` Deprecated. Writes a message to this writer.
    `void` | `severe(StringId msgID, java.lang.Object param)` Deprecated. Writes a message to this writer.
    `void` | `severe(StringId msgID, java.lang.Object[] params)` Deprecated. Writes a message to this writer.
    `void` | `severe(StringId msgID, java.lang.Object[] params, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `severe(StringId msgID, java.lang.Object param, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `severe(StringId msgID, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `severe(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `severeEnabled()` Deprecated.
    `void` | `throwing(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Throwable thrown)` Deprecated. Log throwing an exception.
    `void` | `warning(StringId msgID)` Deprecated. Writes a message to this writer.
    `void` | `warning(StringId msgID, java.lang.Object param)` Deprecated. Writes a message to this writer.
    `void` | `warning(StringId msgID, java.lang.Object[] params)` Deprecated. Writes a message to this writer.
    `void` | `warning(StringId msgID, java.lang.Object[] params, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `warning(StringId msgID, java.lang.Object param, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `warning(StringId msgID, java.lang.Throwable ex)` Deprecated. Writes both a message and exception to this writer.
    `void` | `warning(java.lang.Throwable ex)` Deprecated. Writes an exception to this writer.
    `boolean` | `warningEnabled()` Deprecated.

- - ### Method Detail

    - #### severeEnabled

          boolean severeEnabled()

      Deprecated.
      Returns:
        true if "severe" log messages are enabled.

    - #### severe

          void severe(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "severe".

    - #### severe

          void severe(StringId msgID,
                      java.lang.Object[] params,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### severe

          void severe(StringId msgID,
                      java.lang.Object param,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### severe

          void severe(StringId msgID,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### severe

          void severe(StringId msgID,
                      java.lang.Object[] params)

      Deprecated.
      Writes a message to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### severe

          void severe(StringId msgID,
                      java.lang.Object param)

      Deprecated.
      Writes a message to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### severe

          void severe(StringId msgID)

      Deprecated.
      Writes a message to this writer. The message level is "severe".
      Since:
        GemFire 6.0

    - #### errorEnabled

          boolean errorEnabled()

      Deprecated.
      Returns:
        true if "error" log messages are enabled.

    - #### error

          void error(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "error".

    - #### error

          void error(StringId msgID,
                     java.lang.Object[] params,
                     java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### error

          void error(StringId msgID,
                     java.lang.Object param,
                     java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### error

          void error(StringId msgID,
                     java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### error

          void error(StringId msgID,
                     java.lang.Object[] params)

      Deprecated.
      Writes a message to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### error

          void error(StringId msgID,
                     java.lang.Object param)

      Deprecated.
      Writes a message to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### error

          void error(StringId msgID)

      Deprecated.
      Writes a message to this writer. The message level is "error".
      Since:
        GemFire 6.0

    - #### warningEnabled

          boolean warningEnabled()

      Deprecated.
      Returns:
        true if "warning" log messages are enabled.

    - #### warning

          void warning(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "warning".

    - #### warning

          void warning(StringId msgID,
                       java.lang.Object[] params,
                       java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### warning

          void warning(StringId msgID,
                       java.lang.Object param,
                       java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### warning

          void warning(StringId msgID,
                       java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### warning

          void warning(StringId msgID,
                       java.lang.Object[] params)

      Deprecated.
      Writes a message to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### warning

          void warning(StringId msgID,
                       java.lang.Object param)

      Deprecated.
      Writes a message to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### warning

          void warning(StringId msgID)

      Deprecated.
      Writes a message to this writer. The message level is "warning".
      Since:
        GemFire 6.0

    - #### infoEnabled

          boolean infoEnabled()

      Deprecated.
      Returns:
        true if "info" log messages are enabled.

    - #### info

          void info(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "information".

    - #### info

          void info(StringId msgID,
                    java.lang.Object[] params,
                    java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### info

          void info(StringId msgID,
                    java.lang.Object param,
                    java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### info

          void info(StringId msgID,
                    java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### info

          void info(StringId msgID,
                    java.lang.Object[] params)

      Deprecated.
      Writes a message to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### info

          void info(StringId msgID,
                    java.lang.Object param)

      Deprecated.
      Writes a message to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### info

          void info(StringId msgID)

      Deprecated.
      Writes a message to this writer. The message level is "info".
      Since:
        GemFire 6.0

    - #### configEnabled

          boolean configEnabled()

      Deprecated.
      Returns:
        true if "config" log messages are enabled.

    - #### config

          void config(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "config".

    - #### config

          void config(StringId msgID,
                      java.lang.Object[] params,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### config

          void config(StringId msgID,
                      java.lang.Object param,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### config

          void config(StringId msgID,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### config

          void config(StringId msgID,
                      java.lang.Object[] params)

      Deprecated.
      Writes a message to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### config

          void config(StringId msgID,
                      java.lang.Object param)

      Deprecated.
      Writes a message to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### config

          void config(StringId msgID)

      Deprecated.
      Writes a message to this writer. The message level is "config".
      Since:
        GemFire 6.0

    - #### fineEnabled

          boolean fineEnabled()

      Deprecated.
      Returns:
        true if "fine" log messages are enabled.

    - #### fine

          void fine(java.lang.String msg,
                    java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "fine".

    - #### fine

          void fine(java.lang.String msg)

      Deprecated.
      Writes a message to this writer. The message level is "fine".

    - #### fine

          void fine(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "fine".

    - #### finerEnabled

          boolean finerEnabled()

      Deprecated.
      Returns:
        true if "finer" log messages are enabled.

    - #### finer

          void finer(java.lang.String msg,
                     java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "finer".

    - #### finer

          void finer(java.lang.String msg)

      Deprecated.
      Writes a message to this writer. The message level is "finer".

    - #### finer

          void finer(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "finer".

    - #### entering

          void entering(java.lang.String sourceClass,
                        java.lang.String sourceMethod)

      Deprecated.
      Log a method entry.

      The logging is done using the `finer` level. The string message will start with `"ENTRY"` and include the class and method names.

      Parameters:
        `sourceClass` - Name of class that issued the logging request.
        `sourceMethod` - Name of the method that issued the logging request.

    - #### exiting

          void exiting(java.lang.String sourceClass,
                       java.lang.String sourceMethod)

      Deprecated.
      Log a method return.

      The logging is done using the `finer` level. The string message will start with `"RETURN"` and include the class and method names.

      Parameters:
        `sourceClass` - Name of class that issued the logging request.
        `sourceMethod` - Name of the method that issued the logging request.

    - #### throwing

          void throwing(java.lang.String sourceClass,
                        java.lang.String sourceMethod,
                        java.lang.Throwable thrown)

      Deprecated.
      Log throwing an exception.

      Use to log that a method is terminating by throwing an exception. The logging is done using the `finer` level.

      This is a convenience method that could be done instead by calling `finer(String, Throwable)`. The string message will start with `"THROW"` and include the class and method names.

      Parameters:
        `sourceClass` - Name of class that issued the logging request.
        `sourceMethod` - Name of the method that issued the logging request.
        `thrown` - The Throwable that is being thrown.

    - #### finestEnabled

          boolean finestEnabled()

      Deprecated.
      Returns:
        true if "finest" log messages are enabled.

    - #### finest

          void finest(java.lang.String msg,
                      java.lang.Throwable ex)

      Deprecated.
      Writes both a message and exception to this writer. The message level is "finest".

    - #### finest

          void finest(java.lang.String msg)

      Deprecated.
      Writes a message to this writer. The message level is "finest".

    - #### finest

          void finest(java.lang.Throwable ex)

      Deprecated.
      Writes an exception to this writer. The exception level is "finest".

    - #### getHandler

          java.util.logging.Handler getHandler()

      Deprecated.
      Returns a 1.4 logging handler that can be used to direct application output to this GemFire logger using the standard JDK logger APIs. Each time this method is called it creates a new instance of a Handler so care should be taken to not call this method too often.

    - #### convertToLogWriter

          LogWriter convertToLogWriter()

      Deprecated.
      A mechanism for accessing the abstraction layer used for a plain logger.