ulogger
athreadsafeloggerwithcoloredoutput
thread_logger Struct Reference

#include <logger.h>

Collaboration diagram for thread_logger:

Data Fields

bool debug
 
pthread_mutex_t mutex
 indicates whether we will action on debug logs More...
 
mutex_fn lock
 used for synchronization across threads More...
 
mutex_fn unlock
 helper function for pthread_mutex_lock More...
 
log_fn log
 helper function for pthread_mutex_unlock More...
 
log_fnf logf
 function that gets called for all regular logging More...
 

Detailed Description

Definition at line 250 of file logger.h.

Field Documentation

◆ debug

bool thread_logger::debug

Definition at line 251 of file logger.h.

◆ lock

mutex_fn thread_logger::lock

used for synchronization across threads

Definition at line 253 of file logger.h.

◆ log

log_fn thread_logger::log

helper function for pthread_mutex_unlock

Definition at line 255 of file logger.h.

◆ logf

log_fnf thread_logger::logf

function that gets called for all regular logging

Definition at line 257 of file logger.h.

◆ mutex

pthread_mutex_t thread_logger::mutex

indicates whether we will action on debug logs

Definition at line 252 of file logger.h.

◆ unlock

mutex_fn thread_logger::unlock

helper function for pthread_mutex_lock

Definition at line 254 of file logger.h.


The documentation for this struct was generated from the following file: