mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 20:32:38 +02:00
more confilt resolutions
This commit is contained in:
parent
6eb4d26224
commit
0ad84a4d42
7 changed files with 100 additions and 69 deletions
|
|
@ -13,7 +13,9 @@ from loguru import logger as _logger
|
|||
from metagpt.const import PROJECT_ROOT
|
||||
|
||||
def define_log_level(print_level="INFO", logfile_level="DEBUG"):
|
||||
"""Adjust log level to above the specified level."""
|
||||
"""调整日志级别到level之上
|
||||
Adjust the log level to above level
|
||||
"""
|
||||
_logger.remove()
|
||||
_logger.add(sys.stderr, level=print_level)
|
||||
_logger.add(PROJECT_ROOT / 'logs/log.txt', level=logfile_level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue