Liblouis User's and Programmer's Manual
7.17 lou_setLogLevel ¶
typedef enum
{
LOU_LOG_ALL = 0,
LOU_LOG_DEBUG = 10000,
LOU_LOG_INFO = 20000,
LOU_LOG_WARN = 30000,
LOU_LOG_ERROR = 40000,
LOU_LOG_FATAL = 50000,
LOU_LOG_OFF = 60000
} logLevels;
void lou_setLogLevel (
logLevels level);
This function can be used to influence the amount of logging, from
fatal error messages only to detailed debugging messages. Supported
values are LOU_LOG_DEBUG, LOU_LOG_INFO,
LOU_LOG_WARN, LOU_LOG_ERROR, LOU_LOG_FATAL and
LOU_LOG_OFF. Enabling logging at a given level also enables
logging at all higher levels. Setting the level to LOU_LOG_OFF
disables logging. The default level is LOU_LOG_INFO.
Alternatively, the LOUIS_LOGLEVEL environment variable can be
set to one of all, debug, info, warn,
error, fatal, or off. If set, this value will be
adopted as the default logging level; however, any calls to lou_setLogLevel()
by the application will take precedence. Values are case-insensitive,
and if brevity matters, only the first letter (i.e. a for all
or w for warn) matters.