Format the specified record. If a formatter is set, use it. Otherwise, use the default formatter for the module.
(self, record)
| 940 | self.level = _checkLevel(level) |
| 941 | |
| 942 | def format(self, record): |
| 943 | """ |
| 944 | Format the specified record. |
| 945 | |
| 946 | If a formatter is set, use it. Otherwise, use the default formatter |
| 947 | for the module. |
| 948 | """ |
| 949 | if self.formatter: |
| 950 | fmt = self.formatter |
| 951 | else: |
| 952 | fmt = _defaultFormatter |
| 953 | return fmt.format(record) |
| 954 | |
| 955 | def emit(self, record): |
| 956 | """ |
no outgoing calls