So I was thinking about how to implement optional logging. It's actually quite hard in erlang to introduce shared state, such as a configuration flag that says whether to log or not. So still thinking too much in OO terms. Just kill the process! I.e. always send the message to the logger, e.g. using a name, but optionally start the logger. This is Chuck Moore's: "Don't set a flag, set behavior."