ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
Logging Rate Limits

Standard rate limits for log_*_every() macros. More...

Files

file  log_rates.h
 Logging rate limit constants (in microseconds)
 

Macros

#define LOG_RATE_VERY_FAST   (100000)
 Log rate limit: 0.1 seconds (100,000 microseconds) - for very high frequency operations.
 
#define LOG_RATE_FAST   (1000000)
 Log rate limit: 1 second (1,000,000 microseconds)
 
#define LOG_RATE_NORMAL   (3000000)
 Log rate limit: 3 seconds (3,000,000 microseconds)
 
#define LOG_RATE_DEFAULT   (5000000)
 Log rate limit: 5 seconds (5,000,000 microseconds) - default for audio/video packets.
 
#define LOG_RATE_SLOW   (10000000)
 Log rate limit: 10 seconds (10,000,000 microseconds)
 

Detailed Description

Standard rate limits for log_*_every() macros.

Standard rate limits for log_*_every() macros to reduce log spam in high-frequency code paths.

Usage: log_debug_every(LOG_RATE_VIDEO_FRAME, "message")

Macro Definition Documentation

◆ LOG_RATE_DEFAULT

#define LOG_RATE_DEFAULT   (5000000)

#include <log_rates.h>

Log rate limit: 5 seconds (5,000,000 microseconds) - default for audio/video packets.

Definition at line 32 of file log_rates.h.

◆ LOG_RATE_FAST

#define LOG_RATE_FAST   (1000000)

#include <log_rates.h>

Log rate limit: 1 second (1,000,000 microseconds)

Definition at line 26 of file log_rates.h.

◆ LOG_RATE_NORMAL

#define LOG_RATE_NORMAL   (3000000)

#include <log_rates.h>

Log rate limit: 3 seconds (3,000,000 microseconds)

Definition at line 29 of file log_rates.h.

◆ LOG_RATE_SLOW

#define LOG_RATE_SLOW   (10000000)

#include <log_rates.h>

Log rate limit: 10 seconds (10,000,000 microseconds)

Definition at line 35 of file log_rates.h.

◆ LOG_RATE_VERY_FAST

#define LOG_RATE_VERY_FAST   (100000)

#include <log_rates.h>

Log rate limit: 0.1 seconds (100,000 microseconds) - for very high frequency operations.

Definition at line 23 of file log_rates.h.