MCPcopy Create free account
hub / github.com/apple/axlearn / configure_logging

Function configure_logging

axlearn/cloud/common/utils.py:38–46  ·  view source on GitHub ↗

Configures the logging level and adds FilterDiscoveryLogging. Args: level: Logging verbosity.

(level: int)

Source from the content-addressed store, hash-verified

36
37
38def configure_logging(level: int):
39 """Configures the logging level and adds FilterDiscoveryLogging.
40
41 Args:
42 level: Logging verbosity.
43 """
44 # Utility to configure logging.
45 logging.set_verbosity(level)
46 logging.get_absl_handler().addFilter(FilterDiscoveryLogging())
47
48
49def handle_popen(proc: subprocess.Popen):

Callers 5

dataflow.pyFile · 0.90
gke_runner.pyFile · 0.90
launch.pyFile · 0.90
cpu_runner.pyFile · 0.90
bastion_vm.pyFile · 0.90

Calls 1

Tested by

no test coverage detected