From 86cca8ffc3fdd2b9c824c1e3f7096a990b1bf62a Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 26 Oct 2023 11:35:04 +0200 Subject: [PATCH] Add comment explaining use of _logFormat --- tianshou/utils/logging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tianshou/utils/logging.py b/tianshou/utils/logging.py index caf0ae9..6c12570 100644 --- a/tianshou/utils/logging.py +++ b/tianshou/utils/logging.py @@ -14,6 +14,9 @@ from typing import Any log = getLogger(__name__) LOG_DEFAULT_FORMAT = "%(levelname)-5s %(asctime)-15s %(name)s:%(funcName)s - %(message)s" + +# Holds the log format that is configured by the user (using function `configure`), such +# that it can be reused in other places _logFormat = LOG_DEFAULT_FORMAT