Refactor logging system and enhance Dockerfile configuration
- Introduced a new logging system with configurable log levels and categories. - Added support for different log formats: plain text, JSON, and syslog. - Updated Dockerfile to use Alpine 3.19 and improved build process. - Enhanced server configuration to replace verbose logging with log modes (off, classic, debug, advanced). - Improved security measures in SSL context configuration. - Added health checks and resource limits in docker-compose.yml. - Refactored Makefile to include new logging source files. - Updated server configuration to set default log file path and SSL certificate paths. - Enhanced performance tracking and logging capabilities. - Added hex dump utility for debugging binary data.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#include "performance.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_MMAP_CACHE_SIZE 50
|
||||
#define MAX_MMAP_CACHE_SIZE 100
|
||||
#define MAX_MMAP_FILE_SIZE (10 * 1024 * 1024) // 10MB
|
||||
#define BUFFER_POOL_SIZE 32
|
||||
#define DEFAULT_BUFFER_SIZE 16384
|
||||
#define BUFFER_POOL_SIZE 64
|
||||
#define DEFAULT_BUFFER_SIZE 32768
|
||||
|
||||
// Global cache structures
|
||||
static mmap_cache_entry_t *mmap_cache = NULL;
|
||||
|
||||
Reference in New Issue
Block a user