I can't find a public API for setting the metadata fields like timestamp and severity on a log entry.
It works to do var entry = log.entry(...); entry.severity = "INFO";, which is similar to what's done internally in Log.assignSeverityToEntries_, but I think there should be an options object argument in the Entry constructor.