Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.rabbitmq.tools
Interface Tracer.Logger

All Known Implementing Classes:
  Tracer.AsyncLogger

Enclosing class:
  Tracer

    public static interface Tracer.Logger

Logging strings to an outputStream. Logging may be started and stopped.

Method Summary
`void` | `log(java.lang.String msg)` Write msg to the log.
`boolean` | `start()` Start logging, that is, printing log entries written using `log(String)`.
`boolean` | `stop()` Stop logging, that is, stop printing log entries written using `log(String)`.

Method Detail

### start

    boolean start()

  Start logging, that is, printing log entries written using `log(String)`. Multiple successive starts are equivalent to a single start.

  Returns:
    `true` if start actually started the logger; `false` otherwise.

### stop

    boolean stop()

  Stop logging, that is, stop printing log entries written using `log(String)`. Flush preceding writes. The logger can only be stopped if started. Multiple successive stops are equivalent to a single stop.

  Returns:
    `true` if stop actually stopped the logger; `false` otherwise.

### log

    void log(java.lang.String msg)

  Write msg to the log. This may block, and may block indefinitely if the logger is stopped.

  Parameters:
    `msg` -

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD