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);
    
    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.");
    }
    
    if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) {
    LOG_INFO("Reading from non-seekable stream (stdin/stdout/stderr).");
    char  in            = 0;
    FILE *source_stream = fd == STDIN_FILENO ? stdin : fd == STDOUT_FILENO ? stdout : stderr;
    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);
    
    }                                                                                                      \
    \
    LOG_INFO("User skipped reading of '{}' field in JSON object.", key);                                   \
    si = read_si;                                                                                          \
    }                                                                                                          \

Share :

Related Posts

JW_STR

JW_STR Description Append a string value (quoted) to the JSON.

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_STR_KV

JW_STR_KV Description Write a key and string value into a JSON object.

Read More