ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
lib/log/terminal.c
Go to the documentation of this file.
2#include <libplatform/terminal.h>
3#include <libplatform/compiler.h>
4#include <libplatform/system.h>
5#include <libplatform/terminal.h>
6
7int terminal_choose_log_fd(int level) {
9 return STDERR_FILENO;
10 return level >= LOG_WARN ? STDERR_FILENO : STDOUT_FILENO;
11}
bool log_get_force_stderr(void)
Get current force_stderr setting.
int terminal_choose_log_fd(int level)
📝 Logging API with multiple log levels and terminal output control
bool terminal_is_interactive(void)
#define LOG_WARN
Definition types.h:45