runtime: fix a memory leak in the logger when restarting a flowgraph due to adding new appenders to the logger. Now we clear them and set a

This adds a set of "set" functions to set a new appender. We can always add additional loggers using the old "add" functions.