logtail / logtail-python

Better Stack Python client
https://betterstack.com/logs
Other
36 stars 10 forks source link

Allow custom log levels #14

Closed talcot closed 1 year ago

talcot commented 1 year ago

The current "_levelname" function does not allow custom levels, I think it will be great to allow custom log levels. I did not add any validation to the function since I didn't know what limitation you have on your side.

curusarn commented 1 year ago

Hi @talcot,

Thanks for the PR!

We can accept any log levels, so no validation is fine.

I will merge and release a new version soon.

curusarn commented 1 year ago

I have released a new version with your contribution: https://github.com/logtail/logtail-python/releases/tag/v0.2.5

Thanks again for submitting the PR!

talcot commented 1 year ago

Hey Simon, thanks for the update! Have a great weekend.

On Fri, 5 May 2023 at 20:23 Šimon Let @.***> wrote:

I have released a new version with your contribution: https://github.com/logtail/logtail-python/releases/tag/v0.2.5

Thanks again for submitting the PR!

— Reply to this email directly, view it on GitHub https://github.com/logtail/logtail-python/pull/14#issuecomment-1536559668, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5C7LJTJLSKRDX27E22IJADXEUZQPANCNFSM6AAAAAAXJ3QURA . You are receiving this because you were mentioned.Message ID: @.***>