Skip to content

Commit a266b60

Browse files
lyrixxOskarStark
andauthored
Apply suggestions from code review
Co-Authored-By: Oskar Stark <oskarstark@googlemail.com>
1 parent ffa7f83 commit a266b60

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

logging/handlers.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Handlers
22
========
33

4-
``ElasticsearchLogstashHandler``
5-
--------------------------------
4+
ElasticsearchLogstashHandler
5+
----------------------------
66

77
.. versionadded:: 4.4
88

@@ -16,10 +16,9 @@ In a development environment, it's fine to keep the default configuration: for
1616
each log, an HTTP request will be made to push the log to Elasticsearch.
1717

1818
In a production environment, it's highly recommended to wrap this handler in a
19-
handler with buffering capabilities (like the FingersCrossedHandler, or
20-
BufferHandler) in order to call Elasticsearch only once with a bulk push. For
21-
even better performance and fault tolerance, a proper ELK
22-
(https://www.elastic.co/what-is/elk-stack) stack is recommended.
19+
handler with buffering capabilities (like the ``FingersCrossedHandler`` or
20+
``BufferHandler``) in order to call Elasticsearch only once with a bulk push. For
21+
even better performance and fault tolerance, a proper `ELK stack`_ is recommended.
2322

2423
To use it, declare it as a service:
2524

@@ -103,3 +102,5 @@ then reference it in monolog configuration:
103102
],
104103
],
105104
]);
105+
106+
.. _`ELK stack`: https://www.elastic.co/what-is/elk-stack

0 commit comments

Comments
 (0)