Class AccessLogWriter

java.lang.Object
org.microproxy.extras.AccessLogWriter
All Implemented Interfaces:
AutoCloseable, Consumer<String>

public final class AccessLogWriter extends Object implements Consumer<String>, AutoCloseable
Where an ActivityLogger writes its lines: a file it appends to, or standard output. Each line is written whole and flushed, under a lock, so lines from concurrent exchanges never mix and nothing is lost when the process stops without closing it.