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

Function log_info

harmony/api9/acl_one/entry/src/main/cpp/logger.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#define LOG_ON
11
12void log_info(const char* fmt, ...)
13{
14 const char* ver = acl_version();
15 char tag[256];
16 snprintf(tag, sizeof(tag), "acl-%s", ver);
17 acl::string buf;
18
19 va_list ap;
20 va_start(ap, fmt);
21 buf.vformat(fmt, ap);
22 va_end(ap);
23
24 OH_LOG_Print(LOG_APP, LOG_INFO, LOG_DOMAIN, "tag", "%{public}s", buf.c_str());
25}
26
27void log_error(const char* fmt, ...)
28{

Callers 4

url_getMethod · 0.70
HttpGetFunction · 0.70
napi_value InitFunction · 0.70
write_callbackFunction · 0.70

Calls 3

acl_versionFunction · 0.85
vformatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…