MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _setup_logging

Function _setup_logging

api_utils/app.py:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45# --- Lifespan Context Manager ---
46def _setup_logging():
47 log_level_env = get_environment_variable("SERVER_LOG_LEVEL", "INFO")
48 redirect_print_env = get_environment_variable("SERVER_REDIRECT_PRINT", "false")
49 state.log_ws_manager = WebSocketConnectionManager()
50 return setup_server_logging(
51 logger_instance=state.logger,
52 log_ws_manager=state.log_ws_manager,
53 log_level_name=log_level_env,
54 redirect_print_str=redirect_print_env,
55 )
56
57
58def _initialize_globals():

Callers 2

test_setup_loggingFunction · 0.90
lifespanFunction · 0.85

Calls 3

get_environment_variableFunction · 0.90
setup_server_loggingFunction · 0.90

Tested by 1

test_setup_loggingFunction · 0.72