templetize logging
doc stop
fail while log