Add log bash function.