improvement suggested by LOGBACK-815
improvement suggested by LOGBACK-816