We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312462d commit 7cf04aaCopy full SHA for 7cf04aa
fluent/handler.py
@@ -45,6 +45,14 @@ def format(self, record):
45
return data
46
47
def _structuring(self, data, msg):
48
+ """ Melds `msg` into `data`.
49
+
50
+ :param data: dictionary to be sent to fluent server
51
+ :param msg: :class:`LogRecord`'s message to add to `data`.
52
+ `msg` can be a simple string for backward compatibility with
53
+ :mod:`logging` framework, a JSON encoded string or a dictionary
54
+ that will be merged into dictionary generated in :meth:`format.
55
+ """
56
if isinstance(msg, dict):
57
self._add_dic(data, msg)
58
elif isinstance(msg, basestring):
0 commit comments