BAL log sample code