-
Notifications
You must be signed in to change notification settings - Fork 1
sd_utils.logger
pencil-pusher edited this page Apr 19, 2021
·
2 revisions
create_logger(path: str, level: int = logging.INFO) -> logging.Logger
Creates a logger for a given file path
Note: path
should be __file__
in most cases
Arguments:
-
path
str - the path of the file (common use is__file__
) -
level
int - the level of message to use in the logger (see logging for constants)
Returns:
-
logging.Logger
- The logger created for the given file