Log a message at the given level.
the severity level
a category label (e.g., "WireCodec", "Engine", "Handshake")
the log message
an optional exception stack trace to include