Spaces:
Sleeping
Sleeping
File size: 274 Bytes
5682a2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import logging
from typing import Optional
def get_logger(name: Optional[str] = None, level: str = "INFO") -> logging.Logger:
if name is None:
name = "sam2-playground"
logger = logging.getLogger(name)
logger.setLevel(level.upper())
return logger
|