ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
terminal.c File Reference

Go to the source code of this file.

Functions

int terminal_choose_log_fd (int level)

Function Documentation

◆ terminal_choose_log_fd()

int terminal_choose_log_fd ( int level)

Definition at line 7 of file log/terminal.c.

7 {
8 if (log_get_force_stderr() || !terminal_is_interactive())
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.
Definition log.c:771
#define LOG_WARN
Definition types.h:41

References log_get_force_stderr(), and LOG_WARN.

Referenced by log_console_impl(), log_msg(), and log_plain_msg().