Render a LogEvent into CLEF compact JSON format.
If context is not null, include it with key context.
context
If template is not null, include it with key @mt, else include message with key @m.
template
@mt
message
@m
If stackTrace is not null, include it with key @x.
stackTrace
@x