logging 3 types : error, info, debug