EC_LOG_LEVEL_SET(3)
β¨ EC_LOG_LEVEL_SET(3) β¨
okay bestie, welcome to the libecoli programmer's manual π this one lives in section 3 and it's literally called ec_log_level_set. yes we're doing logs today, stay with me π«Ά
πΈ NAME πΈ
ec_log_level_set β set the global log level π
π¦ SYNOPSIS π¦
#include <ecoli/log.h>
int ec_log_level_set(
enum ec_log_level level /* The log level to be set. */
);
no cap, that's the whole vibe. you hand it a level, it does the thing β¨
π DESCRIPTION π
so like, this level you're setting? it's the one the default log handler actually listens to, and that handler is ec_log_default_cb(). π«Ά
the rule is simple, bestie: every message that is at least as critical as the default level gets displayed. anything chiller than that? not shown. periodt. π
π STRUCTURES π
here's the enum you're working with, iconic lineup honestly π
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;
};
look at them, in order, most dramatic to most chatty π EC_LOG_EMERG at the top, EC_LOG_DEBUG at the bottom, slay π
β RETURN VALUE β
0on success π₯³-1on error π
π SEE ALSO π
ec_log_fct_register(3)ec_vlog(3)ec_log_level_get(3)ec_log_name(3)ec_log(3)ec_log_default_cb(3)ec_log_type_register(3)
go read those too, iykyk πβ¨
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
k bye bestie, this page is from libecoli and it's dated 2026-06-11 β that's the whole manual page, no crumbs left, fr fr ππ¦π
π¦ 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