Fix get_loglevel on tcp backend to meet lager's API and return a level number