added json log encoder