Skip to content

LOG_INFO

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)

Usage examples (Cross-references)
                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;
            }
    
            LOG_INFO("User skipped reading of '{}' field in JSON object.", key);
    
            StrDeinit(&key);
            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;                                                                                          \
                }                                                                                                          \
Last updated on