format logback.groovy

Signed-off-by: Tingxian <chengtingxian@gmail.com>
add singleton and wait

Signed-off-by: Tingxian <chengtingxian@gmail.com>