remove method
Removes writer from the chain, if present. Counterpart to add;
used when the chain needs to be reconfigured after construction
(e.g. swapping a console writer once config has been loaded).
Implementation
bool remove(LogWriter writer) {
final copy = List.of(_writers);
final removed = copy.remove(writer);
_writers = copy;
return removed;
}