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

Method open

lib_acl_cpp/src/stdlib/log.cpp:11–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9static bool m_bOpened = false;
10
11void log::open(const char* recipients, const char* procname /* = unknown */,
12 const char* cfg /* = NULL */)
13{
14 if (m_bOpened) {
15 return;
16 }
17
18 acl_assert(recipients);
19 acl_assert(procname);
20
21 const char* ptr = strrchr(procname, '/');
22 if (ptr) {
23 procname = ptr + 1;
24 }
25#ifdef ACL_WINDOWS
26 if (ptr == NULL) {
27 ptr = strrchr(procname, '\\');
28 if (ptr) {
29 procname = ptr + 1;
30 }
31 }
32#endif
33
34 acl_msg_open(recipients, procname);
35 m_bOpened = true;
36 if (cfg) {
37 acl_debug_init(cfg);
38 }
39}
40
41void log::close(void)
42{

Callers 15

peekMethod · 0.45
service_on_acceptMethod · 0.45
dup_streamMethod · 0.45
connect_oneMethod · 0.45
startFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
fiber_mainFunction · 0.45
mainFunction · 0.45
start_threadsFunction · 0.45
listen_fiberFunction · 0.45

Calls 2

acl_msg_openFunction · 0.85
acl_debug_initFunction · 0.85

Tested by 2

runMethod · 0.36
test_websocket_mainFunction · 0.36