# Functions
NewBufferedSink creates a binary log sink with the given WriteCloser.
NewEsSink 新建es sink.
NewTempFileSink creates a temp file and returns a Sink that writes to this file.
# Variables
DefaultSink is the sink where the logs will be written to.
# Interfaces
Sink writes log entry into the binary log sink.