org.qi4j.io

## Class Transforms.Log<T>

- java.lang.Object
- - org.qi4j.io.Transforms.Log<T>

- Type Parameters:
    `T` -
  All Implemented Interfaces:
    Function<T,T>
  Enclosing class:
    Transforms

      public static class Transforms.Log<T>
      extends Object
      implements Function<T,T>

  Log the toString() representation of transferred items to the given log. The string is first formatted using MessageFormat with the given format.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Transforms.Log(Logger logger, String format)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `map(T item)` Map a single item from one type to another

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

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

- - ### Constructor Detail

    - #### Transforms.Log

          public Transforms.Log(Logger logger,
                        String format)

  - ### Method Detail

    - #### map

          public T map(T item)

      Description copied from interface: `Function`
      Map a single item from one type to another
      Specified by:
        `map` in interface `Function<T,T>`
      Parameters:
        `item` - the input item
      Returns:
        the mapped item