diff --git a/adafruit_logging/__init__.py b/adafruit_logging/__init__.py index 33f8acf..f5bcdf4 100644 --- a/adafruit_logging/__init__.py +++ b/adafruit_logging/__init__.py @@ -111,7 +111,9 @@ def format(self, log_level: int, message: str) -> str: :param str message: the message to log """ - return "{0}: {1} - {2}".format(time.monotonic(), level_for(log_level), message) + return "{0:<0.3f}: {1} - {2}".format( + time.monotonic(), level_for(log_level), message + ) def emit(self, log_level: int, message: str): """Send a message where it should go.