Skip to content

logging: Public API for setting timestamp, severity, etc. on Entry #1348

@zbjornson

Description

@zbjornson

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.

Metadata

Metadata

Labels

api: loggingIssues related to the Cloud Logging API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions