Document utilities
This commit is contained in:
parent
2b378114aa
commit
00568ca6d3
21 changed files with 371 additions and 29 deletions
|
|
@ -9,6 +9,8 @@ loggers: Dict[str, logging.Logger] = {}
|
|||
def get_logger(
|
||||
name: str, level: int = logging.INFO, disable_colors: bool = False
|
||||
) -> logging.Logger:
|
||||
"""Return a customised logger used throughout the GreatAI codebase."""
|
||||
|
||||
if name not in loggers:
|
||||
logger = logging.getLogger(name)
|
||||
logger.setLevel(level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue