logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gensio_set_log_mask, gensio_get_log_mask, gensio_log_level_to_str, - Logging and seting which gensio logs

Description

       The  log  mask  is  a  global  variable  in the gensio library that sets what level of logs are delivered
       through the vlog function pointer in gensio_os_funcs.  Log levels are:

              GENSIO_LOG_FATAL GENSIO_LOG_ERR GENSIO_LOG_WARNING GENSIO_LOG_INFO GENSIO_LOG_DEBUG

       with obvious meanings.  There is also:

              GENSIO_LOG_MASK_ALL

       which is a bitmask of all the log levels.

       The default log mask is (1<<GENSIO_LOG_FATAL|1<<GENSIO_LOG_ERR).  Setting other log values  can  be
       helpful in debugging problems with gensios.

       gensio_log_level_to_str converts a log level to a string representation of that level.

       gensio_vlog  and  gensio_log are the functions used to generate logs.  These are primarily for use in the
       gensio library, though you may use them, too, if you like.

Name

       gensio_set_log_mask, gensio_get_log_mask, gensio_log_level_to_str, - Logging and seting which gensio logs
       are passed or ignored

See Also

gensio(5), gensio_os_funcs(3)

                                                   23 Feb 2019                            gensio_set_log_mask(3)

Synopsis

#include<gensio/gensio.h>voidgensio_set_log_mask(unsignedintmask);unsignedintgensio_get_log_mask(void);constchar*gensio_log_level_to_str(enumgensio_log_levelslevel);voidgensio_vlog(structgensio_os_funcs*o,enumgensio_log_levelslevel,constchar*str,va_listargs);voidgensio_log(structgensio_os_funcs*o,enumgensio_log_levelslevel,constchar*str,...);

See Also