removed encode function on logger