reconnect moved files to git repo

This commit is contained in:
root
2025-08-01 04:33:03 -04:00
commit 5d3c35492d
23190 changed files with 4750716 additions and 0 deletions

View File

@ -0,0 +1,25 @@
"""
CmdStanPy logging
"""
import functools
import logging
@functools.lru_cache(maxsize=None)
def get_logger() -> logging.Logger:
"""cmdstanpy logger"""
logger = logging.getLogger('cmdstanpy')
if len(logger.handlers) == 0:
# send all messages to handlers
logger.setLevel(logging.DEBUG)
# add a default handler to the logger to INFO and higher
handler = logging.StreamHandler()
handler.setLevel(logging.INFO)
handler.setFormatter(
logging.Formatter(
'%(asctime)s - %(name)s - %(levelname)s - %(message)s',
"%H:%M:%S",
)
)
logger.addHandler(handler)
return logger