We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f426161 commit a31c6a8Copy full SHA for a31c6a8
adafruit_logging/extensions.py
@@ -34,18 +34,18 @@ def close(self):
34
"""Closes the file"""
35
self.logfile.close()
36
37
- def format(self, level: int, msg: str):
+ def format(self, log_level: int, message: str):
38
"""Generate a string to log
39
40
:param level: The level of the message
41
:param msg: The message to format
42
"""
43
- return super().format(level, msg) + "\r\n"
+ return super().format(log_level, message) + "\r\n"
44
45
- def emit(self, level: int, msg: str):
+ def emit(self, log_level: int, message: str):
46
"""Generate the message and write it to the UART.
47
48
49
:param msg: The message to log
50
51
- self.logfile.write(self.format(level, msg))
+ self.logfile.write(self.format(log_level, message))
0 commit comments