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

s3 logger - Improve filename to allow easier sorting #1766

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

Manouchehri
Copy link
Collaborator

This puts each day into its own separate folder.

The reason we do a different filename, is so that the user will automatically get the time added to the filename when downloading the logs via an S3 presigned URL.

Logs now look like this:

dave@mbp ~ % rclone ls litellm-logging:litellm-logging/
     3144 2024-02-02/time-16-36-30-088793_chatcmpl-5e010e30-de74-4e79-9516-f9d668272485.json

And when you go to download the file, the filename is time-2024-02-02T16-36-30-088793_chatcmpl-5e010e30-de74-4e79-9516-f9d668272485.json. Putting the date/time first is important so it's easier to sort. =)

Copy link

vercel bot commented Feb 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 4:40pm
litellm-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 4:40pm

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

lgtm !

@ishaan-jaff ishaan-jaff merged commit b273a47 into BerriAI:main Feb 2, 2024
3 of 4 checks passed
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