public static interface

Tracer.Logger

com.rabbitmq.tools.Tracer.Logger
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void log(String msg)
Write msg to the log.
abstract boolean start()
Start logging, that is, printing log entries written using log(String).
abstract boolean stop()
Stop logging, that is, stop printing log entries written using log(String).

Public Methods

public abstract void log (String msg)

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

public abstract 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.

public abstract 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.