8000 Add docstring to FluentHandler._structuring · socrateslee/fluent-logger-python@d08a557 · GitHub
[go: up one dir, main page]

Skip to content

Commit d08a557

Browse files
committed
Add docstring to FluentHandler._structuring
1 parent 1cde07a commit d08a557

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fluent/handler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def format(self, record):
5050
return data
5151

5252
def _structuring(self, data, msg):
53+
""" Melds `msg` into `data`.
54+
55+
:param data: dictionary to be sent to fluent server
56+
:param msg: :class:`LogRecord`'s message to add to `data`.
57+
`msg` can be a simple string for backward compatibility with
58+
:mod:`logging` framework, a JSON encoded string or a dictionary
59+
that will be merged into dictionary generated in :meth:`format.
60+
"""
5361
if isinstance(msg, dict):
5462
self._add_dic(data, msg)
5563
elif isinstance(msg, basestring):

0 commit comments

Comments
 (0)
0