add method

void add(
  1. LogWriter writer
)

Appends writer to the chain. Useful when a writer can only be constructed after the chain has already been built (e.g. a writer that needs a database session that doesn't exist yet at startup).

Implementation

void add(LogWriter writer) => _writers.add(writer);