{"_id":"google-logging-utils","_rev":"19-c7ed3de83fd6e9d3bbbc738cf4919da1","name":"google-logging-utils","dist-tags":{"next":"0.0.2","legacy-18":"1.2.0","latest":"2.2.0"},"versions":{"0.0.0":{"name":"google-logging-utils","version":"0.0.0","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@0.0.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"f534f0294ec81296a7692a596d95bc7424e0ed66","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.0.tgz","fileCount":14,"integrity":"sha512-/HUNbnFti7lbsPLyEjEKppatZrzWRPfyfBxkkGWuZSXYe2IlNk70rmJT4dBv/TUfN0IPM+s9eRXIFgo4+yzoWg==","signatures":[{"sig":"MEUCIQDqu5VAhEhUJ4zrWkeQm5agAazoB6YoStrcPD0JfdIWNAIgQvL5/RGLOCwDrSx4gXHuKmlLF6KLn/dQ692hvG3asbc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57397},"main":"build/src/index.js","types":"./build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"dc44d0727222730dec2afe73598b57ab1255e3f0","scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p . && cp -r test/fixtures build/test","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"echo no samples 🙀"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"adhoc-logging"},"_npmVersion":"9.7.1","description":"An ad-hoc debug logger package for other libraries","directories":{},"_nodeVersion":"18.15.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.0.0","mocha":"^9.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/debug":"^4.1.12","@types/mocha":"^10.0.10"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_0.0.0_1732135849234_0.5689723578600498","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"google-logging-utils","version":"0.0.1","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@0.0.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"c671069f220c8b66f81e2f102acff2630be8c87f","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.1.tgz","fileCount":14,"integrity":"sha512-1e56Z6KI8vy755d0TEwYzexNizdM1LeDJUqZYjy61iQPY1pVy/tVqGs96huStCGMd9Qymk/2TkFkuCzZ6k94vA==","signatures":[{"sig":"MEUCICNH+bgggsZyU3sI9Sqf2RXubBbU2F/GCTfK3rLH1Hh/AiEAgm/8KI3H3apZxf6iKKy/YtSZTnL/5FXKIRezak5gTzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58081},"main":"build/src/index.js","types":"./build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"4dcce17847c412b1d9c07eb7aba01e4d02e0981f","scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p . && cp -r test/fixtures build/test","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"echo no samples 🙀"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"adhoc-logging"},"_npmVersion":"9.7.1","description":"An ad-hoc debug logger package for other libraries","directories":{},"_nodeVersion":"18.15.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.0.0","mocha":"^9.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/debug":"^4.1.12","@types/mocha":"^10.0.10"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_0.0.1_1732140456638_0.3581461563616939","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"google-logging-utils","version":"0.0.2","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@0.0.2","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"5fd837e06fa334da450433b9e3e1870c1594466a","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz","fileCount":14,"integrity":"sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==","signatures":[{"sig":"MEUCIQDwT7IBvd1yfLRTwnQTE6g7t2ueVBp2bZrqEJ2bQxeJDAIgZdA+HUx1PYK5gWtj02xieYwLQgVPAJUoABp6cF/+5dE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57377},"main":"build/src/index.js","types":"./build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"511df04ec5064070adb173b9b8d84056cf7b1758","scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p . && cp -r test/fixtures build/test","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"echo no samples 🙀"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"logging-utils"},"_npmVersion":"9.7.1","description":"An ad-hoc debug logger package for other libraries","directories":{},"_nodeVersion":"18.15.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.0.0","mocha":"^9.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_0.0.2_1732311115433_0.5670277995715605","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"google-logging-utils","version":"1.0.1","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.0.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"5fe98fce5afbe94720a2a1cf3f890d39f4f8e746","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.0.1.tgz","fileCount":15,"integrity":"sha512-COkVH6AhAhRD8A47YGW1JYR2bPN/H20xqMecvyCXpVOK1Y8AwRKKOqRLs4o754RnNrG+DflcVo+lqQDQbiJZWw==","signatures":[{"sig":"MEQCIHLWnAqH8haqUKr8ZeMEgLKNWlsBv40rhq6ReRovChxdAiABwjIFXy/jdF6n1NsQJKVjGQg+9NdTDP54L0vFg/1VjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58296},"main":"build/src/index.js","engines":{"node":">=14"},"scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"logging-utils"},"_npmVersion":"6.14.15","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.3.1","mocha":"^9.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.0.1_1734738912306_0.9516206918814372","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"google-logging-utils","version":"1.1.0","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.1.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"7d85fcf81e9b6edef98cfd5cc7debd082f394796","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.0.tgz","fileCount":15,"integrity":"sha512-ARaE/CVO0gjI7UI/erOgA30pZeDTJvWQpVisyZFHYMVHPhz+kQsLGjkvMAJ0Ff9u+HPwWadow9/2fqSq/Kxnlg==","signatures":[{"sig":"MEQCIBHPP6aJ3SxeZEy11j6WtanAD2+cwU8PfHqb5/IaxOyFAiB77QQorFOSydDvPvpGh8YVkwtl7PmyWr8jfossNslQwQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63145},"main":"build/src/index.js","types":"./build/src/index.d.ts","engines":{"node":">=14"},"scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.6","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.3.1","mocha":"^9.0.0","sinon":"^19.0.2","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10","@types/sinon":"^17.0.3"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.1.0_1741302071572_0.4289786879022215","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"google-logging-utils","version":"1.1.1","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.1.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"4a1f44a69a187eb954629c88c5af89c0dfbca51a","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.1.tgz","fileCount":15,"integrity":"sha512-rcX58I7nqpu4mbKztFeOAObbomBbHU2oIb/d3tJfF3dizGSApqtSwYJigGCooHdnMyQBIw8BrWyK96w3YXgr6A==","signatures":[{"sig":"MEUCIEmkz2C4c3z+9+tjchVQGXe+WJg/rsr6XI/smrObAk7UAiEAwPpSvJzKWswHm/KEwRpAEGcLVzNspfDQIgi9/iJeKpI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63288},"main":"build/src/index.js","types":"./build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"c5d42ca02ee9f93f3b48f8b92cf409917c02a3e2","scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.6","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.3.1","mocha":"^9.0.0","sinon":"^19.0.2","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10","@types/sinon":"^17.0.3"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.1.1_1741626982731_0.6392785686889069","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"google-logging-utils","version":"1.1.2","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.1.2","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/gax-nodejs#readme","bugs":{"url":"https://github.com/googleapis/gax-nodejs/issues"},"dist":{"shasum":"57cd7ef5e679d44c192cc042b767f989cdfca1f5","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.2.tgz","fileCount":15,"integrity":"sha512-YsFPGVgDFf4IzSwbwIR0iaFJQFmR5Jp7V1WuYSjuRgAm9yWqsMhKE9YPlL+wvFLnc/wMiFV4SQUD9Y/JMpxIxQ==","signatures":[{"sig":"MEUCIQCZ0La29CRvvR8qwjDRHhTt9mahN9hV7mJx7Rch2RcRegIgalT/dLgL3wFuXQD6Oza1msqwO3yaaCY2QPm8qBH/DUg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63288},"main":"build/src/index.js","_from":"file:google-logging-utils-1.1.2.tgz","types":"./build/src/index.d.ts","engines":{"node":">=14"},"scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/b/f/w/src/git/build-dir/dev-packages/logging-utils/google-logging-utils-1.1.2.tgz","_integrity":"sha512-YsFPGVgDFf4IzSwbwIR0iaFJQFmR5Jp7V1WuYSjuRgAm9yWqsMhKE9YPlL+wvFLnc/wMiFV4SQUD9Y/JMpxIxQ==","repository":{"url":"git+https://github.com/googleapis/gax-nodejs.git","type":"git","directory":"logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.3.1","mocha":"^9.0.0","sinon":"^21.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10","@types/sinon":"^17.0.3"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.1.2_1761850094431_0.6879370766371153","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"google-logging-utils","version":"1.1.3","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.1.3","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node-core/tree/main/dev-packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node-core/issues"},"dist":{"shasum":"17b71f1f95d266d2ddd356b8f00178433f041b17","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz","fileCount":15,"integrity":"sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==","signatures":[{"sig":"MEUCIQCEeHflvcmIaVm+WhDUB8ohkDRepHf4/Au3FIx8jwz0ggIgZaWL5HZM1Hl69PkHvSakpxzzEMjuNNWNOwzdLLHjVAE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63510},"main":"build/src/index.js","_from":"file:google-logging-utils-1.1.3.tgz","types":"./build/src/index.d.ts","engines":{"node":">=14"},"scripts":{"fix":"gts fix","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/b/f/w/src/git/build-dir/dev-packages/logging-utils/google-logging-utils-1.1.3.tgz","_integrity":"sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node-core.git","type":"git","directory":"dev-packages/logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","gts":"^5.3.1","mocha":"^9.0.0","sinon":"^21.0.0","typescript":"^5.1.6","@types/node":"^22.9.1","@types/mocha":"^10.0.10","@types/sinon":"^17.0.3"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.1.3_1762975686645_0.9363514202653385","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"google-logging-utils","version":"1.1.4","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.1.4","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node-core/tree/main/dev-packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node-core/issues"},"dist":{"shasum":"279c0f58efda53880e9bf0dda8b6d32789c570f9","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.4.tgz","fileCount":18,"integrity":"sha512-LXxE6ND+JHhDPYtPFt3oeWrjxFPrnRZCZ4At6lpbi1ZDSAN7bmGET9s53vvARbxT93p+xpeDUbc/nCR4C+7vcw==","signatures":[{"sig":"MEUCIQDi+OWBShqmRo4oRTZo+G0Z81+a9bK4Bx7wNnbNPktSywIgIv3jjUOYY1uPoutDtx++aVp77wjLJZdNuHITvY3l+4g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60722},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"5ffca12206b54abdd2660cc698e99edb58b59894","scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/google-cloud-node-core.git","type":"git","directory":"dev-packages/logging-utils"},"_npmVersion":"11.11.0","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.1.4_1780609460032_0.6901167893515292","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"google-logging-utils","version":"1.2.0","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@1.2.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"89dd643f986c765e61bfa2d01cada2292fe5bfd7","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.2.0.tgz","fileCount":18,"integrity":"sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==","signatures":[{"sig":"MEUCIHzPvFp86aam8PShz1hoyGEd/mJyf/KflWt9oxlwfpqVAiEAtd8eQybb1t70MqNc1CpN4WRjEe/IdxAjleWjFC2jGJY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIEePZ75luHau2xn1ppo723BZqXa53epGqkOWYbK0/p4GAiB/dCQCgMnou9OMiZWvwxWVF4nUGkaA023ykWQX831KvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60709},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=18"},"gitHead":"6b9fd1af346a20479615704d40435f6ae0ecfba6","scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"11.8.0","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_1.2.0_1784846700667_0.6183365267172665","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"google-logging-utils","version":"2.0.0","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@2.0.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"e8b9c0e1265e41197c9af17f7efc615f52d1ac53","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.0.0.tgz","fileCount":18,"integrity":"sha512-U8TWXI7x5g9zIMNB3CYHTptn6waa6XTJnTvWncJdYHVcIfUYDNGWRUgKzmztIij9bobr0F9QCZumHGGvW4wOLg==","signatures":[{"sig":"MEUCIQD5WXKR5tm+GiajyFCns82gkgLtqpUbykNKQbb4/uNZjwIgHR4pfg39eGgi/NATeAO5DbLGtvKyMp1JYM6LGJwBk10=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICGiOmO79Qwq/K5cVCwehk7/h4MElJ0KOPwT0MuKZmUhAiEAmzgxzJ28H8tv4GHPU8Xhdoqxa3vCbcBoygd8WyfvM4I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60709},"main":"build/src/index.js","_from":"file:google-logging-utils-2.0.0.tgz","types":"build/src/index.d.ts","engines":{"node":">=22"},"scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/b/f/w/src/git/build-dir/core/packages/logging-utils/google-logging-utils-2.0.0.tgz","_integrity":"sha512-U8TWXI7x5g9zIMNB3CYHTptn6waa6XTJnTvWncJdYHVcIfUYDNGWRUgKzmztIij9bobr0F9QCZumHGGvW4wOLg==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_2.0.0_1785428447280_0.717883700742364","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"google-logging-utils","version":"2.0.1","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@2.0.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"d78b34f4250db9ee816f29fee3321939296bcb8a","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.0.1.tgz","fileCount":18,"integrity":"sha512-HMhaQghlOTvbcb3c4T5jmmOMtG3JUF1iOQMezaJXL86CDS+Tm2vHd0IeLFRAx3+ewd+bo9E1HFHoy17X5aJa9A==","signatures":[{"sig":"MEUCIGdRV2vpVTah3ngLYNzb1nKD+e28SbVbpgg4+2UCB/n/AiEA1OU3MBLCqk6qM3NziTvuoFdrg2sFuVKVLioLamEE4jQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDjfrueeytOgCQnwXWhTCI9+esEeffrYyxbLrvh1dhRwwIgJHzBP03/76mvVSWS6EE8jkBxbDVFsQ0SaG9glm8qSkE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60709},"main":"build/src/index.js","_from":"file:google-logging-utils-2.0.1.tgz","types":"build/src/index.d.ts","engines":{"node":">=22"},"scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"c8 mocha build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/b/f/w/src/git/build-dir/core/packages/logging-utils/google-logging-utils-2.0.1.tgz","_integrity":"sha512-HMhaQghlOTvbcb3c4T5jmmOMtG3JUF1iOQMezaJXL86CDS+Tm2vHd0IeLFRAx3+ewd+bo9E1HFHoy17X5aJa9A==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"10.8.2","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_2.0.1_1786407168110_0.7150633168166536","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"google-logging-utils","version":"2.1.0","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@2.1.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"d6b84feb2ca5a20c4cfcbc9c83ed8038971f1759","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.1.0.tgz","fileCount":18,"integrity":"sha512-1R6uiq6XhXW2ZrcGtZpGgVDsYGzSmveVOn8Pp37qe1fbThHZ34e3t3eXj5mVu6PFSVx9fvB1KNVnYgVtq/BRcA==","signatures":[{"sig":"MEYCIQDUq/PwJ38gMM+i++piTDBYfRszf7Q+1c4E6NMaRP+S5QIhAMRJZDejZHlTaGGOsAKiGsy7HoiLNB+EKLDjyO8XBdHW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDsL32m59MtsvCAd1czahuAKKp1dAUf7pTIGGiMxeVGUAiBo/UoCtiFQZTLdZir5iHed/0K85OVDt70joRDLXQCQrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60731},"main":"build/src/index.js","_from":"file:/tmp/publishing-artifacts-3712920134/google-logging-utils/2.1.0/google-logging-utils-2.1.0.tgz","types":"build/src/index.d.ts","engines":{"node":">=22"},"scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"node ../../../bin/run-test.cjs build/test","clean":"gts clean","compile":"tsc -p .","prepare":"npm run compile","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/tmp/publishing-artifacts-3712920134/google-logging-utils/2.1.0/google-logging-utils-2.1.0.tgz","_integrity":"sha512-1R6uiq6XhXW2ZrcGtZpGgVDsYGzSmveVOn8Pp37qe1fbThHZ34e3t3eXj5mVu6PFSVx9fvB1KNVnYgVtq/BRcA==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"10.9.3","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_2.1.0_1791843209397_0.9634167109354186","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"google-logging-utils","version":"2.1.1","author":{"name":"Google API Authors"},"license":"Apache-2.0","_id":"google-logging-utils@2.1.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"126b54160cf6199276eb72e6c25b016da62bb2b9","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.1.1.tgz","fileCount":18,"integrity":"sha512-jYZOPMaRGS3Hldyudft6bdibW9ZWUKBkMdB2TeSETkV1c2T9TR4zxEWZETHv9xJ8KHr2hgkNLaSa8kcEcwlpeQ==","signatures":[{"sig":"MEYCIQCnsVCAnkx55yX7FFArcM/qcmPWhtd3CsQtlBPUeYlhEwIhAJIesiKnDhPgthWD2kba1CXycsMOKubk/Boe+9HjzwVY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCkUzH+mIenRYMkqLg9qGdoJVJVMEfYwslZFFwb8bRJnAIhAOmn5JmtVLWSBXV9HOnmq/ld9LNGNyaI5ZX0KeSDXLLH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62989},"main":"build/src/index.js","_from":"file:/tmp/publishing-artifacts-2877621492/google-logging-utils/2.1.1/google-logging-utils-2.1.1.tgz","types":"build/src/index.d.ts","engines":{"node":">=22"},"scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"node ../../../bin/run-test.cjs build/test","clean":"gts clean","compile":"tsc -p .","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"_resolved":"/tmp/publishing-artifacts-2877621492/google-logging-utils/2.1.1/google-logging-utils-2.1.1.tgz","_integrity":"sha512-jYZOPMaRGS3Hldyudft6bdibW9ZWUKBkMdB2TeSETkV1c2T9TR4zxEWZETHv9xJ8KHr2hgkNLaSa8kcEcwlpeQ==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"10.9.3","description":"A debug logger package for other Google libraries","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-logging-utils_2.1.1_1793233238109_0.159406846262948","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"_id":"google-logging-utils@2.2.0","bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"dist":{"shasum":"8484f980976ef3bdd1409e1e5e96576bc8a457ee","tarball":"https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.2.0.tgz","fileCount":18,"integrity":"sha512-Q6HuSEyoaxi0AgqUrOYb2gc77fDl4QugRoHpreI8VpW/VzPsoKyxjL8tGKLmZpWlvC1uVBXM85tykoQpCGBF5g==","signatures":[{"sig":"MEUCIQCiThySRQxsqluwA+C4VXjPTo5vrkeERPOLPHlGK43FFwIgARjiVvOv3z2iQOsQydf0mpnTWjKmynr6GOPvPlOUyFs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEG7R/kDQV7gvF3tnehd8uql3fGnNOydZf+rnkxMnHFaAiAk36130vi10eC984GunjDHyabWJZmNXAWTY2pPH9vexg=="}],"unpackedSize":66871},"main":"build/src/index.js","name":"google-logging-utils","_from":"file:/tmp/publishing-artifacts-731641194/google-logging-utils/2.2.0/google-logging-utils-2.2.0.tgz","types":"build/src/index.d.ts","author":{"name":"Google API Authors"},"engines":{"node":">=22"},"license":"Apache-2.0","scripts":{"fix":"gts fix","docs":"echo no docs needed","lint":"gts check test src samples","test":"node ../../../bin/run-test.cjs build/test","clean":"gts clean","compile":"tsc -p .","pretest":"npm run prepare","precompile":"gts clean","system-test":"echo no system tests 🙀","samples-test":"cd samples/ && npm link ../ && npm install && npm test && cd ../"},"version":"2.2.0","_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","_resolved":"/tmp/publishing-artifacts-731641194/google-logging-utils/2.2.0/google-logging-utils-2.2.0.tgz","_integrity":"sha512-Q6HuSEyoaxi0AgqUrOYb2gc77fDl4QugRoHpreI8VpW/VzPsoKyxjL8tGKLmZpWlvC1uVBXM85tykoQpCGBF5g==","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"_npmVersion":"10.9.3","description":"A debug logger package for other Google libraries","directories":{},"maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","gts":"^6.0.2","mocha":"^11.1.0","sinon":"21.0.3","typescript":"5.8.3","@types/node":"^24.0.0","@types/mocha":"^10.0.10","@types/sinon":"^21.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/google-logging-utils_2.2.0_1794244075333_0.35732563585987887"}}},"time":{"created":"2024-11-20T20:50:49.233Z","modified":"2026-11-09T17:07:55.681Z","0.0.0":"2024-11-20T20:50:49.426Z","0.0.1":"2024-11-20T22:07:36.912Z","0.0.2":"2024-11-22T21:31:55.635Z","1.0.1":"2024-12-20T23:55:12.527Z","1.1.0":"2025-03-06T23:01:11.754Z","1.1.1":"2025-03-10T17:16:22.924Z","1.1.2":"2025-10-30T18:48:14.623Z","1.1.3":"2025-11-12T19:28:06.845Z","1.1.4":"2026-06-04T21:44:20.171Z","1.2.0":"2026-07-23T22:45:00.786Z","2.0.0":"2026-07-30T16:20:47.371Z","2.0.1":"2026-08-11T00:12:48.222Z","2.1.0":"2026-10-12T22:13:29.478Z","2.1.1":"2026-10-29T00:20:38.211Z","2.2.0":"2026-11-09T17:07:55.474Z"},"bugs":{"url":"https://github.com/googleapis/google-cloud-node/issues"},"author":{"name":"Google API Authors"},"license":"Apache-2.0","homepage":"https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils","repository":{"url":"git+https://github.com/googleapis/google-cloud-node.git","type":"git","directory":"core/packages/logging-utils"},"description":"A debug logger package for other Google libraries","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"readme":"# Google Logging Tools\n\n## About\nThis package defines an ad-hoc debug logger utility that can be used as a lightweight alternative to \"printf debugging\" via `console.log`, and provides more, and more structured information. It is based largely on the ideas of the Node `util.debuglog` function, and the `debug` npm package.\n\n## Contracts\nThese are logging utilities meant primarily for use as an \"adhoc debug logger\" inside Google libraries. It's possible to use this outside of that context, but it is currently not supported. (You're on your own.)\n\n* **Stable Package API (SemVer 1.x):** The exported programmatic interface—`log()`, `placeholder`, `LogFields`, `LogSeverity`, `AdhocDebugLogFunction` (including `.on('log', ...)` and `.sublog()`), `setBackend()`, `getNodeBackend()`, `getStructuredBackend()`, and `env.nodeEnables` (`GOOGLE_SDK_NODE_LOGGING`)—is a strict SemVer-stable contract used across `google-gax`, `google-auth-library`, `gcp-metadata`, and `@google-cloud/*`.\n* **Non-Contractual Log Output:** Exact human-readable log message strings and the addition of new diagnostic attributes in `LogFields.other` may evolve across minor versions so customers do not rely on regex-parsing prose messages. For now, it is meant to be a tool for local usage by users, to get the equivalent of \"printf debugging\" output. In the future, it may tie into more things (OpenTelemetry Logging, etc). Structured log output is possible for vacuuming into Cloud Logging.\n\n## Usage\nThe user interface for this logging is very similar to Node's built-in logging. The primary unit of logging is called a \"system\", and some libraries may have sub-units called \"subsystems\". You separate the system and subsystem with a colon, like \"pubsub:leasing\" or similar. Wildcards may be used (e.g. \"pubsub:*\"), and multiple of these system/system:subsystem pairs may be listed out, separated by commas. For generated GAPIC libraries, the \"system\" will generally be the part of the package name specific to the library (e.g. `@google-cloud/translate` will be `translate`).\n\nThe environment variable for activating logging is `GOOGLE_SDK_NODE_LOGGING`. So you could run your application similarly to this:\n\n```\nGOOGLE_SDK_NODE_LOGGING=translate node yourApp.js\n```\n\nOr even enable everything, though you might end up with a firehose if you have multiple libraries as dependencies:\n\n```\nGOOGLE_SDK_NODE_LOGGING=* node yourApp.js\n```\n\n## Logging\nLogging functions are created by calling the `log()` function. You pass a system or system:subsystem identifier, and a function is returned. This function may be called directly:\n\n```\nconst logger = log('test');\nlogger({other:{metadata: 'foo'}}, 'format string %j', {formatted: 'parameter'});\n```\n\nYou may also call shorthands that set the `severity` metadata field, and use defaults for the metadata object generally:\n\n```\nlogger.debug('format string %s', 'string');\nlogger.info('format string %s', 'string');\nlogger.warn('format string %s', 'string');\nlogger.error('format string %s', 'string');\n```\n\nFinally, the logger function may be used to create a \"sub-log\", i.e. adding a sub-system to a system:\n\n```\nconst sublogger = logger.sublog('specific');\nlogger.info('big one');\nsublogger.info('specific!');\n```\n\nThis will output two logs, filed under `test` and `test:specific`, respectively.\n\n## Backends\nAdditionally, there is a concept of a logging backend. You can manually set where you want logs to go, by default, and how you want them processed. The `setBackend()` function lets you set a backend manually. `undefined` (reset to defaults) and `null` (disable logging) are also possible options.\n\nThe package provides several built-in options:\n\n* `getNodeBackend()` This is the default that comes with setting the environment variable. It detects the possibility of coloration in the terminal and formats outputs using `util.format()`.\n* `getDebugBackend(debugpkg)` This interfaces with the `debug` npm package. You'd essentially do something like `setBackend(getDebugBackend(require('debug')))`.\n* `getStructuredBackend(upstream?)`. This converts log output into structured log JSON objects, suitable for feeding into Cloud Logging. An optional `upstream` parameter lets you funnel the output through another backend instead of `console.log`.\n\n## Severity and request/response payloads\nGoogle Cloud client libraries log request and response payloads at `DEBUG` severity. Payloads can contain sensitive data.\n\n`GOOGLE_SDK_NODE_LOGGING` selects systems, not severities, and the built-in backends do not filter by severity. With the default Node backend, setting `GOOGLE_SDK_NODE_LOGGING=translate` (or `*`) prints `DEBUG` payloads to stderr along with everything else.\n\nTo keep payloads out of your logs, filter on severity:\n\n* **Cloud Logging:** use `setBackend(getStructuredBackend())`. Each log line is written as JSON with a `severity` field, which becomes the log entry's severity when ingested by Cloud Logging. Set your Log Router sink's inclusion filter to `severity >= INFO` (or `severity >= WARNING` to keep only warnings and errors), and no request/response payloads are ingested. Per-attempt errors are also logged at `DEBUG`; to keep them, also include `DEBUG` entries that carry an `error.type` or `gcp.errors.domain` attribute.\n* **In process:** pass your own backend to `setBackend()` and drop entries based on `fields.severity`. The same approach works when forwarding logs to Winston, Pino, Bunyan, or another logger.\n\n```\nconst logging = require('google-logging-utils');\n\n// Run with GOOGLE_SDK_NODE_LOGGING set as usual.\nconst nodeBackend = logging.getNodeBackend();\nlogging.setBackend({\n  log(namespace, fields, ...args) {\n    // Request/response payloads are logged at DEBUG.\n    if (fields.severity !== 'DEBUG') {\n      nodeBackend.log(namespace, fields, ...args);\n    }\n  },\n  setFilters(filters) {\n    nodeBackend.setFilters(filters);\n  },\n});\n```\n\n## Integrating with Google Cloud Node.js Client Libraries\nGoogle Cloud Node.js client libraries (built on `google-gax`, `google-auth-library`, and `gcp-metadata`) use `google-logging-utils` to emit RPC telemetry and diagnostic logs when enabled via the `GOOGLE_SDK_NODE_LOGGING` environment variable.\n\nYou can import `google-logging-utils` directly or access it via `google-gax` (`const {loggingUtils} = require('google-gax')`).\n\n### Example 1: Default Console Output (`NodeBackend`)\nSet `GOOGLE_SDK_NODE_LOGGING` to the target service namespace (for example, `secretmanager` for `@google-cloud/secret-manager`) before making client library calls. By default, `google-logging-utils` uses `getNodeBackend()` to write formatted log lines to `stderr`:\n\n```javascript\nconst {SecretManagerServiceClient} = require('@google-cloud/secret-manager');\n\n// Enable logging for the Secret Manager client library (prefer a service-scoped\n// filter over `*`, `true`, or `all` in production so `auth` debug logs stay off).\nprocess.env.GOOGLE_SDK_NODE_LOGGING = 'secretmanager';\n\nasync function main() {\n  const client = new SecretManagerServiceClient();\n  await client.listSecrets({parent: 'projects/my-project'});\n}\n\nmain().catch(console.error);\n```\n\n### Example 2: Exporting Structured JSON Logs to Cloud Logging (`getStructuredBackend`)\nWhen running on Google Cloud environments (such as Cloud Run, GKE, or Compute Engine with the Ops Agent), use `getStructuredBackend()` to export client library logs as single-line structured JSON objects to `stdout` for automatic ingestion into Cloud Logging:\n\n```javascript\nconst logging = require('google-logging-utils');\nconst {SecretManagerServiceClient} = require('@google-cloud/secret-manager');\n\n// 1. Enable logging for the target client library via environment variable.\nprocess.env.GOOGLE_SDK_NODE_LOGGING = 'secretmanager';\n\n// 2. Configure the structured JSON backend before making client calls.\nlogging.setBackend(logging.getStructuredBackend());\n\nasync function main() {\n  const client = new SecretManagerServiceClient();\n  await client.listSecrets({parent: 'projects/my-project'});\n}\n\nmain().catch(console.error);\n```\n\n### Example 3: Exporting Logs to a Custom Logger or Sink (Pino, Winston, Bunyan)\nTo forward client library logs to a third-party logging library or custom exporter, pass a custom backend implementation to `setBackend()`. When OpenTelemetry tracing is also enabled (`GOOGLE_SDK_NODE_ENABLE_TRACING=true`), failed RPC logs include `fields.telemetryTraceId` and `fields.telemetrySpanId` for trace-log correlation:\n\n```javascript\nconst util = require('util');\nconst logging = require('google-logging-utils');\nconst {SecretManagerServiceClient} = require('@google-cloud/secret-manager');\n\n// 1. Enable logging for the target client library via environment variable.\nprocess.env.GOOGLE_SDK_NODE_LOGGING = 'secretmanager';\n\n// 2. Register a custom backend to format and export log entries.\nlogging.setBackend({\n  setFilters() {\n    // Receives filters parsed from `GOOGLE_SDK_NODE_LOGGING`, if needed.\n  },\n  log(namespace, fields, ...args) {\n    // Optionally skip `auth` debug logs if `*` was enabled.\n    if (namespace === 'auth') {\n      return;\n    }\n    const entry = {\n      namespace,\n      severity: fields.severity,\n      message: util.format(...args),\n      ...(fields.telemetryTraceId\n        ? {telemetryTraceId: fields.telemetryTraceId}\n        : {}),\n      ...(fields.telemetrySpanId\n        ? {telemetrySpanId: fields.telemetrySpanId}\n        : {}),\n      ...(fields.other || {}),\n    };\n    // Export `entry` to your preferred logger (e.g. pinoLogger.info(entry), winstonLogger.log(entry)):\n    console.log(JSON.stringify(entry));\n  },\n});\n\nasync function main() {\n  const client = new SecretManagerServiceClient();\n  await client.listSecrets({parent: 'projects/my-project'});\n}\n\nmain().catch(console.error);\n```\n\n## Hooking logs\nThe log objects you receive from calling `log()` can be hooked as event emitters, like so:\n\n```\nloggingFunc.on('log', (fields: LogFields, args: unknown[]) => {\n  // Process logs as you like.\n});\n```\n\nThis will not prevent normal log output, and system/system:subsystem identifiers will be cached to make sure that all logs of the same name will output to the same event handlers.\n","readmeFilename":"README.md"}