The logging API support batching mode manually, where you can put multiple entry in the log.write()
log.write([entry, secondEntry]);
Is that possible to implement an batching interface to support this automatically?
for example:
log.add(entry);
...
log.add(another_entry);
In the background, logging client does periodic flush internally sending all buffered logs to cloud logging automatically. The flush is triggered when enough entries are buffered and/or at a fixed interval.
This would make the API better performance wise by making less APIs calls to cloud logging?
The logging API support batching mode manually, where you can put multiple entry in the log.write()
log.write([entry, secondEntry]);Is that possible to implement an batching interface to support this automatically?
for example:
In the background, logging client does periodic flush internally sending all buffered logs to cloud logging automatically. The flush is triggered when enough entries are buffered and/or at a fixed interval.
This would make the API better performance wise by making less APIs calls to cloud logging?