Added role support to logger