Skip to content

Commit

Permalink
Updating the documentation and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkinsa committed Feb 6, 2024
1 parent 0e1b854 commit e6b3375
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ async def main(message):
asyncio.run(main(message))
```

### GELF TCP with custom timestamp

```python
import asyncio
import asyncgelf

from datetime import datetime


async def main(message):
handler = asyncgelf.GelfTcp(
host='127.0.0.1',
)
event_time = "2024-02-06 08:25:56.789"
timeformat = "%Y-%m-%d %H:%M:%S.%f"
await handler.tcp_handler(message, datetime.strptime(event_time, timeformat).timestamp())

asyncio.run(main(message))
```

### GELF HTTP

```python
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

setup(
name='asyncgelf',
version='1.1.0',
version='1.2.0',
author='Sergey Malinkin',
author_email='[email protected]',
url='https://github.com/malinkinsa/asyncgelf',
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/1.1.0.tar.gz',
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/1.2.0.tar.gz',
description='Async python logging handlers that send messages in the Graylog Extended Log Format (GELF).',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand All @@ -22,6 +22,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Logging',
],
Expand Down

0 comments on commit e6b3375

Please sign in to comment.