class_docstr: Attaches to the logging module and captures log messages for each test.
      
class_docstr_tok: ["Attaches","to","the","logging","module","and","captures","log","messages","for","each","test","."]
docstr: Return True if log_cli should be considered enabled, either explicitly
  or because --log-cli-level was given in the command-line.
docstr_tok: ["Return","True","if","log_cli","should","be","considered","enabled",",","either","explicitly","or","because","--","log-cli-level","was","given","in","the","command-line","."]
code: def _log_cli_enabled(self):
      """Return True if log_cli should be considered enabled, either explicitly
      or because --log-cli-level was given in the command-line.
      """
      return self._config.getoption(
          "--log-cli-level"
      ) is not None or self._config.getini("log_cli")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import re
  from contextlib import contextmanager
  import py
  import six
  import pytest
  from _pytest.compat import dummy_context_manager
  from _pytest.config import create_terminal_writer
  from _pytest.pathlib import Path
label_desc: Use image node_id 5 for calling the LoggingPlugin obj's underlying member method code with example usage: obj._log_cli_enabled() and returns: unknown