Browse files

update readme with disable option

  • Loading branch information...
1 parent 56727b1 commit cc9b6e93e5c4b1187d8ae21042feb9ad375e494e @garethr garethr committed Jan 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rst
4 README.rst
@@ -46,6 +46,10 @@ A number of custom fields are automatically added if available:
* process_name
* thread_name
+You can disable these additional fields if you don't want them by adding an argument to the hander::
+ handler = graypy.GELFHandler('localhost', 12201, debugging_fields=False)
graypy also supports additional fields to be included in the messages sent to Graylog2. This can be done by using Python's LoggerAdapter_ and Filter_. In general, LoggerAdapter makes it easy to add static information to your log messages and Filters give you more flexibility, for example to add additional information based on the message that is being logged.
Example using LoggerAdapter_::

0 comments on commit cc9b6e9

Please sign in to comment.