Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Does the Logging client support logs and Entries for Folders and Organizations #1398

@smilinazzo

Description

@smilinazzo

Hey,

I'm looking for some clarification and direction. I currently have some resources setup as follows:

─ my-organization
    └── my-folder
          └── my-project

I can write logs to a project with the sample code:

async write(): {
  const logging = new Logging();
  const log = logging.log('folder-log-1');

  // A json log entry with additional context
  const metadata = {
    severity: 'WARNING',
    resource: {
      type: 'global'
    }
  };

  const message = {
    "message": "Some message for some log",
  };

  const json_Entry = log.entry(metadata, message);
  await log.write(json_Entry);
}

But, I would also like to write/retrieve logs/entries from the organization and folder levels. The service account for the project has Logging Admin and Logs Viewer access for the Folder and organization.

Is this client only able to write/view logs and entries for a Project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: loggingIssues related to the googleapis/nodejs-logging API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions