MCPcopy Create free account
hub / github.com/acl-dev/acl / hook_fiber_log

Function hook_fiber_log

lib_fiber/cpp/src/fiber_server.cpp:1091–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091static void hook_fiber_log()
1092{
1093#if !defined(_WIN32) && !defined(_WIN64)
1094 ACL_ARRAY *loggers = acl_log_get_streams();
1095 ACL_ITER iter;
1096
1097 if (loggers) {
1098 acl_foreach(iter, loggers) {
1099 ACL_VSTREAM *fp = (ACL_VSTREAM*) iter.data;
1100 acl_fiber_set_sysio(ACL_VSTREAM_FILE(fp));
1101 }
1102
1103 acl_log_free_streams(loggers);
1104 }
1105 // If hook flag been set, the log of fiber module will be
1106 // written to the current log file.
1107 acl_fiber_msg_register(fiber_log_writer, NULL);
1108#endif
1109}
1110
1111void acl_fiber_server_main(int argc, char *argv[],
1112 void (*service)(void*, ACL_VSTREAM*), void *ctx, int name, ...)

Callers 1

acl_fiber_server_mainFunction · 0.85

Calls 3

acl_log_get_streamsFunction · 0.85
acl_log_free_streamsFunction · 0.85
acl_fiber_msg_registerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…