Skip to content

[VET-5756] feat: add support for fetching endpoint log archive#313

Merged
anneeb merged 5 commits intomasterfrom
VET-5756-update-stardog-js
Jul 14, 2025
Merged

[VET-5756] feat: add support for fetching endpoint log archive#313
anneeb merged 5 commits intomasterfrom
VET-5756-update-stardog-js

Conversation

@jakehamilton
Copy link
Copy Markdown
Contributor

Comment thread test/serverLogs.spec.js Outdated
Comment thread lib/index.d.ts
/**
* Retrieves a zip file containing log information for an endpoint.
*/
function logs(conn: Connection): Promise<Response>;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to use a plain Response object here instead of returning a Blob or ArrayBuffer to give the consumer the freedom to handle that as they see fit. Some use cases might be easier as one or the other and they're accessed simply enough from the response object like normal:

const blob = await stardog.server.logs().blob()

// or

const buffer = await stardog.server.logs().arrayBuffer()

Comment thread lib/index.d.ts
@SpiralP SpiralP removed their assignment Jul 11, 2025
Copy link
Copy Markdown
Contributor

@anneeb anneeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@anneeb anneeb added this to the v8.1.0 milestone Jul 14, 2025
@anneeb anneeb merged commit 2be3378 into master Jul 14, 2025
1 check passed
@anneeb anneeb deleted the VET-5756-update-stardog-js branch July 14, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants