severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
260 stars 91 forks source link

add 'level_names' for 'GELFRabbitHandler' #88

Open chenliangomc opened 6 years ago

chenliangomc commented 6 years ago

Another attempt to fix the missing 'level_names' argument. Without that field in the message payload, there is no way to display ro filter by 'level_name' field in Graylog.

The test script is also updated.

codecov-io commented 5 years ago

Codecov Report

Merging #88 into master will increase coverage by 7.62%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   51.48%   59.11%   +7.62%     
==========================================
  Files           3        3              
  Lines         202      203       +1     
==========================================
+ Hits          104      120      +16     
+ Misses         98       83      -15
Impacted Files Coverage Δ
graypy/rabbitmq.py 35.38% <0%> (+27.57%) :arrow_up:
graypy/__init__.py 71.42% <0%> (-28.58%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5a59194...391d502. Read the comment docs.