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:
4
Makefile
4
Makefile
@@ -16,13 +16,13 @@ LDFLAGS = -pthread -Wl,-z,relro,-z,now -pie
|
||||
LIBS = -lssl -lcrypto -lmagic -lnghttp2 -lz
|
||||
|
||||
# Source files and object files
|
||||
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c src/performance.c
|
||||
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c src/performance.c src/logging.c
|
||||
DEST = src/bin/
|
||||
OBJS = $(patsubst src/%.c,$(DEST)%.o,$(SRCS))
|
||||
TARGET = server
|
||||
|
||||
# Header files
|
||||
HEADERS = src/server_config.h src/websocket.h src/http2.h src/performance.h
|
||||
HEADERS = src/server_config.h src/websocket.h src/http2.h src/performance.h src/logging.h
|
||||
|
||||
# Include directories
|
||||
INCLUDES =
|
||||
|
||||
Reference in New Issue
Block a user