Format the specified record. If a formatter is set, use it. Otherwise, use the default formatter for the module.
(self, record)
| 986 | self.level = _checkLevel(level) |
| 987 | |
| 988 | def format(self, record): |
| 989 | """ |
| 990 | Format the specified record. |
| 991 | |
| 992 | If a formatter is set, use it. Otherwise, use the default formatter |
| 993 | for the module. |
| 994 | """ |
| 995 | if self.formatter: |
| 996 | fmt = self.formatter |
| 997 | else: |
| 998 | fmt = _defaultFormatter |
| 999 | return fmt.format(record) |
| 1000 | |
| 1001 | def emit(self, record): |
| 1002 | """ |
no outgoing calls
no test coverage detected