MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / get_log_level

Function get_log_level

python/ctranslate2/logging.py:38–45  ·  view source on GitHub ↗

Returns the current logging level. Returns: A Python logging level.

()

Source from the content-addressed store, hash-verified

36
37
38def get_log_level() -> int:
39 """Returns the current logging level.
40
41 Returns:
42 A Python logging level.
43 """
44 ct2_level = _ext.get_log_level()
45 return _CT2_TO_PYTHON_LEVEL[ct2_level]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected