EC_VLOG(3)
β¨ EC_VLOG(3) β¨
okay bestie, this one lives in the Libecoli Programmer's Manual and it's literally the function that makes your logs look cute and formatted instead of a hot mess π
πΈ NAME πΈ
ec_vlog β bestie's job is literally just: log a formatted string. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
first, you gotta bring the header in like it's a plus-one:
#include <ecoli/log.h>
and then the actual queen herself:
int int ec_vlog(
int type, /* The log type identifier. */
enum ec_log_level level, /* The log level. */
const char *format, /* The format string. */
va_list ap /* The list of arguments. */
);
ngl the source literally writes int int up there and I am not touching it, not my business, not my problem π copy it exactly as-is or the compiler will humble you.
so like, quick tour of the squad:
typeβ the log type identifier. which flavor of log are we doing.levelβ the log level. how loud are we being about it.formatβ the format string. the template, the blueprint, the vision β¨apβ the list of arguments. all the little pieces getting slotted into that format.
π STRUCTURES π
here's enum ec_log_level, the mood ring of logging. lowest to highest panic, in order, no cap:
enum ec_log_level {
EC_LOG_EMERG;
EC_LOG_ALERT;
EC_LOG_CRIT;
EC_LOG_ERR;
EC_LOG_WARNING;
EC_LOG_NOTICE;
EC_LOG_INFO;
EC_LOG_DEBUG;
};
eight levels, all iconic, all doing their own thing π
π₯ RETURN VALUE π₯
0on success β we ate, no crumbs π«Ά-1on error, anderrnois set β it's giving "something went wrong and we're telling you why" π
π SEE ALSO π
the whole friend group, go say hi:
ec_log_fct_register(3)ec_log_level_set(3)ec_log_level_get(3)ec_log_name(3)ec_log(3)ec_log_default_cb(3)ec_log_type_register(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
okay that's the whole page, mwah π this was libecoli, dated 2026-06-11, and the man page answers to EC_VLOG(3). go log something gorgeous, bestie π¦β¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms