File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 6
6
~~~~~~~~~
7
7
8
8
"""
9
- from __future__ import (absolute_import , division , print_function ,
10
- unicode_literals , with_statement )
9
+ from __future__ import absolute_import , unicode_literals
11
10
12
11
import logging
13
12
import time
24
23
25
24
26
25
def default_log_template (self , record ):
27
- """Return the prefix for the log message. Template for Formatter.
26
+ """
27
+ Return the prefix for the log message. Template for Formatter.
28
28
29
29
Parameters
30
30
----------
@@ -81,11 +81,19 @@ def format(self, record):
81
81
82
82
83
83
def debug_log_template (self , record ):
84
- """ Return the prefix for the log message. Template for Formatter.
84
+ """
85
+ Return the prefix for the log message. Template for Formatter.
85
86
86
- :param: record: :py:class:`logging.LogRecord` object. this is passed in
87
- from inside the :py:meth:`logging.Formatter.format` record.
87
+ Parameters
88
+ ----------
89
+ record : :py:class:`logging.LogRecord`
90
+ This is passed in from inside the :py:meth:`logging.Formatter.format`
91
+ record.
88
92
93
+ Returns
94
+ -------
95
+ str
96
+ Log template.
89
97
"""
90
98
91
99
reset = Style .RESET_ALL
You can’t perform that action at this time.
0 commit comments