Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logfire.logfire_info() #826

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add logfire.logfire_info() #826

wants to merge 3 commits into from

Conversation

samuelcolvin
Copy link
Member

While creating #825 I realised there's no nice way to get the logfire info output if you don't have a terminal.

Copy link

cloudflare-workers-and-pages bot commented Jan 29, 2025

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 409b400
Status: ✅  Deploy successful!
Preview URL: https://16cfa665.logfire-docs.pages.dev
Branch Preview URL: https://logfire-info.logfire-docs.pages.dev

View logs


```bash
logfire info
```

Or in python run:
Copy link
Member Author

Choose a reason for hiding this comment

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

this will be wrong until we make a release.

Comment on lines 233 to 235
def logfire_info() -> str:
"""Show versions of logfire, OS and related packages."""
raise NotImplementedError('this method is not implement in logfire-api')
Copy link
Member

Choose a reason for hiding this comment

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

Logfire API is meant to be a no-op. Why would it not be possible to call it with logfire-api?

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, I'll make it return an empty string.

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.

2 participants