Skip to content

Releases: googleapis/nodejs-logging

@google-cloud/logging v0.9.0

29 Sep 18:07
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Dropped support for Node v0.12.x

We've officially dropped support for Node v0.12.x. It may still work, but it is not officially supported and may stop working at any time.

Fixes

  • Correct resource descriptor for GKE. (#2163)

@google-cloud/logging v0.8.0

29 Sep 18:06
Compare
Choose a tag to compare

release level

Features

  • insertId properties are automatically assigned on log entries to preserve ordering. (#2021)

@google-cloud/logging v0.7.1

29 Sep 18:05
Compare
Choose a tag to compare

release level

Bugfixes

  • Add code to deal with circular references. (#1983)
  • Fix project ID detection bug. (#1990)

@google-cloud/logging v0.6.0

29 Sep 18:03
Compare
Choose a tag to compare

release level

  • Auto-detect projectId. See Authentication for more. (#1656)
  • Log entries are automatically decorated with a default resource object. (#1808)
  • Log entries are assigned a timestamp at the time the object is created. (#1815)

@google-cloud/logging v0.5.0

29 Sep 18:02
Compare
Choose a tag to compare

release level

Implementation Details

  • Updated auto-generated API. (#1735)

@google-cloud/logging v0.4.0

29 Sep 18:01
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes

Promises have arrived!

Issue: #551
PR: #1707

It's been a long time coming, but we're finally here. We've shipped promise support in the Stackdriver Logging module!

Do I have to use promises?

Nope, carry on. (But keep reading if you use streams)

How do I use promises?

Don't pass a callback:

var logging = require('@google-cloud/logging')();

logging.getEntries()
  .then(function(data) {
    var entities = data[0];
  })
  .catch(function(err) {});

How do I use a method as a stream?

All of the streaming functionality from our methods have been moved to their own method.

var logging = require('@google-cloud/logging')();

- logging.getEntries()
+ logging.getEntriesStream()
   .on('data', function(entry) {})

- logging.getSinks()
+ logging.getSinksStream()
   .on('data', function(sink) {})
var log = logging.log('syslog');

- log.getEntries()
+ log.getEntriesStream()
   .on('data', function(entry) {})

@google-cloud/logging v0.3.0

29 Sep 18:00
Compare
Choose a tag to compare

release level

  • Sync dependencies with other service modules to minimize download and installation time as much as possible. (#1605)

@google-cloud/logging v0.2.0

29 Sep 17:58
Compare
Choose a tag to compare

release level

Features

  • Automatically update metadata on an object after calling getMetadata(). (#1563)
  • Upgrade gRPC dependency, which addresses a memory leak issue. (#1544)