def ribosome_file_logging(name: str, file_kw: dict=dict()) -> None:
prefix_path = options.nvim_log_file.value | (lambda: amino.logging.log_dir() / 'nvim')
level = (
DDEBUG
if options.development and options.spec else
options.file_log_level.value | logging.DEBUG
)
logfile = Path(f'{prefix_path}_ribo_{name}_{os.getpid()}')
kw = merge(
file_kw,
dict(level=level, logfile=logfile)
)
return amino_root_file_logging(**kw)
评论列表
文章目录