Turn on/off file appender programmatically