Open smilinazzo opened 1 year ago
Thanks @smilinazzo for opening this issue. Looking into formatLogName, it seems we do not support folder/organizations
as defined in logName. I will turn this issue into a feature as well.
Thank @losalex.
I was able to get what I needed by doing:
async getLogs(resource: 'projects' | 'folders' | 'organizations'): Promise<string[]> {
const response = await this._client.auth.request({
url: `https://logging.googleapis.com/v2/${resource}/logs`,
method: 'GET'
});
return response.data;
}
But being able to use the client directly would be great.
Hey,
I'm looking for some clarification and direction. I currently have some resources setup as follows:
I can write logs to a project with the sample code:
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?