asafc64
a302845b76
Fixed ignored extra fields when logging exceptions
7 years ago
Roi Rav-Hon
a041aba092
Version bump
7 years ago
Roi Rav-Hon
a417ce51ea
Merge pull request #19 from nir0s/various-optimizations
Various optimizations
7 years ago
nir0s
344d4e85b0
Fix conflicts with upstream
7 years ago
nir0s
79d49b8038
Remove TODOs from code
7 years ago
Roi Rav-Hon
d760a3ed21
Version bump
7 years ago
Roi Rav-Hon
25318785a6
Merge pull request #20 from OspreyInformatics/master
Ensure sending thread is alive before appending log message
7 years ago
Jotham Apaloo
c6c8171a68
Revert "Leave initialization in c'tor, just call start() where needed"
This reverts commit d41ceabe82
. Which I suspect
does not work because the thread is stateful, i.e. after os.fork the thread in
copy of the process thinks it has already been started, even though it is not
alive. Probably safest to just get a new thread instance if a thread is not alive.
7 years ago
Jotham Apaloo
d41ceabe82
Leave initialization in c'tor, just call start() where needed
7 years ago
Jotham Apaloo
b1950d5038
Fix logs buffer clearing and clear it before each test
7 years ago
Jotham Apaloo
fcac03ae7f
Ensure parent process messages still received after fork
7 years ago
Jotham Apaloo
066f73264d
Make logzio handler log correctly after os.fork()
7 years ago
nir0s
a40a5193ac
Add .gitignore
7 years ago
nir0s
91f61ad8b1
Fix py3flake8 problems
7 years ago
nir0s
22dd58cf3e
Redo testing to use tox
7 years ago
nir0s
b0120dd869
Oops, add forgotten logger
7 years ago
nir0s
9da3e76b08
Replace "print" statements with a logger. Come on, it's 2018!
Also, only use lazy logger string formatting evaluations
7 years ago
nir0s
92b612f62f
Use single quotes instead of double quotes all around
7 years ago
nir0s
8ab14130d5
Format strings realistically and consistently
* Use non-marked format holders since we only support 2.7+
* Use format holders, only, no concat
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
Roi Rav-Hon
5a351b8fec
Version bump
7 years ago
Roi Rav-Hon
7b806081b8
Merge pull request #18 from orenmazor/manual_draining
Manual draining
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
Roi Rav-Hon
0236dc9714
Merge pull request #17 from schwin007/patch-1
added a note that the type can't contain a space.
7 years ago
Joshua Schnitzer
18cf58ce34
added a note that the type can't contain a space.
7 years ago
TomasKuznetsov
3586b73936
Support for extra fields
7 years ago
TomasKuznetsov
edda67f3c0
Merge pull request #15 from logzio/add_extra_fields
Add extra fields
7 years ago
TomasKuznetsov
e365b78d79
Fix tests for 3.6
7 years ago
TomasKuznetsov
44089aaf63
Added extra fields support
7 years ago
Roi Rav-Hon
bd75c3dc56
Bump version, added build script regards #13
7 years ago
Roi Rav-Hon
13ebad59a7
Merge pull request #13 from cchristous/rename-setup-cfg
rename setup.cfg.py to setup.cfg
7 years ago
Corey Christous
abb5b28824
rename setup.cfg.py to setup.cfg
7 years ago
Roi Rav-Hon
06e47c1e64
Merge pull request #10 from logzio/fix_max_allowed_size
Fix bug that consumed more logs while draining than Logz.io's bulk limit
7 years ago
Roi Rav-Hon
f6ca061439
Fix bug that consumed more logs while draining than Logz.io's bulk limit
7 years ago
Roi Rav-Hon
b7b22cf8d6
Version bump
8 years ago
Roi Rav-Hon
d127a5bd6a
Merge pull request #8 from johnraz/Fix-issue-7
Fix #7 Return formatted message if format string
8 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.
8 years ago
Roi Rav-Hon
f246ae3431
Added __all__
8 years ago
Roi Rav-Hon
eba2c47f63
Merge pull request #4 from logzio/production-grade
Rewrite most of the handler, tests were introduced
8 years ago
Roi Rav-Hon
e4b7f7642c
Update README.md
8 years ago
Roi Rav-Hon
011a18439f
PR fixes
8 years ago
Roi Rav-Hon
7c730d60f1
Remove 3.0 -> 3.2 support. Travis not supporting 3.0 and 3.1, and pip and requests lib not supporting 3.2
Updated readme with the supported versions
8 years ago
Roi Rav-Hon
9ac8081344
Dump typo
8 years ago
Roi Rav-Hon
7f6031f7f9
More python 3 compatibilities
8 years ago