I am trying to send logs through my application server using GCP logging api.
When providing a timestamp to the entry I can't find it in the logs viewer but when omitting it I can easily find it.
This is my snippet for creating a log entry:
const entry = log.entry(resource, {
delegate: 'ido'
});
entry.severity = 'INFO';
entry.timestamp = new Date();
entry.labels = {
tag1: 'true',
tag2: 'true'
};
I am trying to send logs through my application server using GCP logging api.
When providing a timestamp to the entry I can't find it in the logs viewer but when omitting it I can easily find it.
This is my snippet for creating a log entry: