Project Alice
Loading...
Searching...
No Matches
pcp_logger.c File Reference
#include "default_config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "pcp.h"
#include "pcp_logger.h"
#include "sys/time.h"
Include dependency graph for pcp_logger.c:

Go to the source code of this file.

Functions

void pcp_logger_init (void)
 
void pcp_set_loggerfn (external_logger ext_log)
 
void pcp_logger (pcp_loglvl_e log_level, const char *fmt,...)
 
void pcp_strerror (int errnum, char *buf, size_t buflen)
 

Variables

pcp_loglvl_e pcp_log_level =PCP_MAX_LOG_LEVEL
 

Function Documentation

◆ pcp_logger()

void pcp_logger ( pcp_loglvl_e  log_level,
const char *  fmt,
  ... 
)

Definition at line 112 of file pcp_logger.c.

◆ pcp_logger_init()

void pcp_logger_init ( void  )

Definition at line 50 of file pcp_logger.c.

Here is the caller graph for this function:

◆ pcp_set_loggerfn()

void pcp_set_loggerfn ( external_logger  ext_log)

Definition at line 107 of file pcp_logger.c.

◆ pcp_strerror()

void pcp_strerror ( int  errnum,
char *  buf,
size_t  buflen 
)

Definition at line 165 of file pcp_logger.c.

Here is the caller graph for this function:

Variable Documentation

◆ pcp_log_level

Definition at line 48 of file pcp_logger.c.