com.twitter.common.logging
Interface Log<T,R>

All Known Implementing Classes:
BufferedLog, ScribeLog

public interface Log<T,R>

Logs messages to scribe.


Method Summary
 void flush()
          Flushes the log, attempting to purge any state that is only stored locally.
 R log(List<T> entries)
          Batch version of log.
 R log(T entry)
          Submits a log message.
 

Method Detail

log

R log(T entry)
Submits a log message.

Parameters:
entry - Entry to log.
Returns:
The result of the log request.

log

R log(List<T> entries)
Batch version of log.

Parameters:
entries - Entries to log.
Returns:
The result of the log request.

flush

void flush()
Flushes the log, attempting to purge any state that is only stored locally.