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?