LOG_INFO

Table of Contents

LOG_INFO

Description

Writes an informational log message. …[in] : Format string and arguments following printf-style syntax.

Success

Informational message written to log output

Failure

Logging fails silently (output not guaranteed)

Usage example (Cross-references)

    }                                                                                                      \
    \
    LOG_INFO("User skipped reading of '{}' field in JSON object.", key);                                   \
    si = read_si;                                                                                          \
    }                                                                                                          \
    }
    
    LOG_INFO("User skipped reading of '{}' field in JSON object.", key);
    
    StrDeinit(&key);
    if (!arg->writer || !arg->data) {
    #if defined(_MSC_VER) || defined(__MSC_VER)
    LOG_INFO("Using default writer for char, because MSVC is STUPID AF");
    if (fmt_info.flags & FMT_FLAG_CHAR) {
    arg->writer = (TypeSpecificWriter)_write_i8;
    
    if (fmt_info.width > var_width) {
    LOG_INFO("Number of bytes read as raw data exceeds variable width. Excess data will discarded.");
    }
    Scope(&output_path, StrDeinit, {
    StrMerge(&output_path, &file_path);
    LOG_INFO("{}", output_path);
    StrReplaceZstr(&output_path, "/", "-", -1);
    LOG_INFO("{}", output_path);
    LOG_INFO("{}", output_path);
    StrReplaceZstr(&output_path, "/", "-", -1);
    LOG_INFO("{}", output_path);
    
    Str md_code = StrInit();
    // complete relative file path
    StrPushFront(&output_path, '/');
    LOG_INFO("{}", output_path);
    StrPushFrontCstr(&output_path, project.build_dir.data, project.build_dir.length);
    LOG_INFO("{}", output_path);
    LOG_INFO("{}", output_path);
    StrPushFrontCstr(&output_path, project.build_dir.data, project.build_dir.length);
    LOG_INFO("{}", output_path);
    StrReplaceZstr(&output_path, ".c", ".md", 1);
    StrReplaceZstr(&output_path, ".h", ".md", 1);
    StrReplaceZstr(&output_path, ".c", ".md", 1);
    StrReplaceZstr(&output_path, ".h", ".md", 1);
    LOG_INFO("{}\n\n", output_path);
    

Share :

Related Posts

StrReadFmt

StrReadFmt Description Parse input string according to format string with rust-style placeholders, extracting values into provided arguments. This is a macro wrapper around StrReadFmtInternal.

Read More

LOG_ERROR

LOG_ERROR Description Writes an error-level log message. …[in] : Format string and arguments following printf-style syntax.

Read More

JW_BOOL_KV

JW_BOOL_KV Description Write a key and boolean value into a JSON object.

Read More