ralongit
1620831da2
Update
1 year ago
ralongit
0a9dadf313
Add ExtraFieldsLogFilter
1 year ago
ralongit
66fc33bb93
flake8 tests, setuptools upgrade and readme update
1 year ago
ralongit
cd234b6873
Optional OTEL trace context - INT-834
Add optional OTEL trace context lib support
https://logzio.atlassian.net/browse/INT-834
1 year ago
Bence Szabó
6ccf4c9614
Fix message formatting while handling exceptions ( #76 )
* Fix message formatting while handling exceptions
* change split, add changelog
* bump version
---------
Co-authored-by: mirii1994 <miri.ignatiev@logz.io>
2 years ago
Miri
7e9a48fa06
Add context ( #71 )
* add traces context
* add trace context section in readme
* fix type
* Update README.md
* Update README.md
* small fix to readme
* fix typo
Co-authored-by: Nico <86240618+nico-shishkin@users.noreply.github.com>
2 years ago
Tamir Michaeli
f4713a6217
Bug fixes and ci ( #70 )
* bug fixes
* Added CI: tests and auto release
3 years ago
tamir-michaeli
e7f9585b6c
bug fixes
3 years ago
Oliver Seemann
d06b5a16fb
Add timeout for requests.post() operation
Like all network operations, performing the POST request may fail for various
reasons. When no response from the remote end is received, a requests.post()
call may never return, leading to an unbounded increase in the sender queue.
To remedy such situations let's add a timeout argument to the requests call and
make it configurable, to be adaptable for different environments.
For more information see
https://2.python-requests.org/en/master/user/quickstart/#timeouts
6 years ago
Ruda Porto Filgueiras
f87341d263
Deleting objects to make sure garbage collector will release memory.
6 years ago
Emile Fugulin
ca7be192be
Add flag to disable the local backup of logs
6 years ago
Roi Rav-Hon
19909d1fd9
Remove the exception info from the formatting
7 years ago
Roi Rav-Hon
b532a29d76
Even more pep8\!
7 years ago
Roi Rav-Hon
4bf2d09062
More pep8
7 years ago
Roi Rav-Hon
d3ee46e88c
pep8
7 years ago
Roi Rav-Hon
f14c580266
Treat exception and non-exception the same
7 years ago
asafc64
a302845b76
Fixed ignored extra fields when logging exceptions
7 years ago
nir0s
91f61ad8b1
Fix py3flake8 problems
7 years ago
nir0s
92b612f62f
Use single quotes instead of double quotes all around
7 years ago
nir0s
be328d3b26
Verify the token is not anything empty, not just "not an empty string"
If you pass an empty list, tuple, False, 0, whatever.. it will assume th
token is valid, which it isn't.
7 years ago
nir0s
2de666e92c
Use LogzioException when validating token
7 years ago
nir0s
27b212d2b7
Add LogzioException class
Currently the module raises generic Exception (very "don't do it")
7 years ago
nir0s
b511e9ed21
Fix some flake8 stuff and organize imports
7 years ago
Oren Mazor
cc31353d25
fix semantics I rushed through the first time. the handler shouldn't call a private method on the sender
7 years ago
Oren Mazor
27f76c2136
typo
7 years ago
Oren Mazor
7b2040706f
PEP8
7 years ago
Oren Mazor
df76f91e04
extract the queue draining action out of the loop. this way it can be manually called externally
7 years ago
TomasKuznetsov
e365b78d79
Fix tests for 3.6
7 years ago
TomasKuznetsov
44089aaf63
Added extra fields support
7 years ago
Jonathan Liuti
4333b965de
Fix #7 Return formatted message if format string
Currently logging with:
```
logger.info('hello %s', 'world')
```
will send the string "hello %s" to logz.io instead of "hello world"
This commit fixes this situation.
7 years ago
Roi Rav-Hon
6b31517848
Rewrite most of the handler, tests were introduced
8 years ago
Roi Rav-Hon
ffc5191e40
Retry sending to logz.io
8 years ago
Marek Kudlacz
ffe751d0a6
Improve exception logging
Add tests
8 years ago
Marek Kudlacz
d51b4bc9a9
Fix formatter not being used.
Allow custom logzio fields to top level structure
8 years ago
MoisesRT
62b6541f89
removed the slash from the url
8 years ago
Roi Rav-Hon
74f2f37718
Better handle logz.io responses, and drain to file in case of an unrecoverable error
9 years ago
Roi Rav-Hon
05b7534f62
Initial handler release
9 years ago