Package 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
Modifier and TypeMethodDescriptionvoidWrite msg to the log.booleanstart()Start logging, that is, printing log entries written usinglog(String).booleanstop()Stop logging, that is, stop printing log entries written usinglog(String).
-
Method Details
-
start
boolean start()Start logging, that is, printing log entries written usinglog(String). Multiple successive starts are equivalent to a single start.- Returns:
trueif start actually started the logger;falseotherwise.
-
stop
boolean stop()Stop logging, that is, stop printing log entries written usinglog(String). Flush preceding writes. The logger can only be stopped if started. Multiple successive stops are equivalent to a single stop.- Returns:
trueif stop actually stopped the logger;falseotherwise.
-
log
Write msg to the log. This may block, and may block indefinitely if the logger is stopped.- Parameters:
msg-
-