whaffman
010ee3e8b6
moving some files and fixing includes
2025-10-06 15:16:53 +02:00
whaffman
95753eea34
feat(validation): implement configuration validation framework with rules for required directives and allowed values
2025-10-06 14:48:15 +02:00
Quinten
a8b71747bb
refactor(main): clean up
2025-10-01 20:51:50 +02:00
whaffman
bcd33dacd7
feat: serve static pages
2025-10-01 17:50:10 +02:00
Quinten
1c634ddc02
remove client when it disconnects
2025-09-30 17:18:09 +02:00
whaffman
d360728b18
feat: enhance logging by changing info logs to debug level for detailed tracing
2025-09-30 11:26:05 +02:00
whaffman
ab2db513c0
iwyu
2025-09-30 10:54:50 +02:00
whaffman
787432ff0c
refactor: simplify Client and HttpRequest constructors, add status code management
2025-09-29 16:09:40 +02:00
whaffman
124c831800
refactor: improve location path extraction and add getValueAs template method
2025-09-26 18:50:40 +02:00
whaffman
e5ad795917
fix: apply IWYU suggestions and format
2025-09-26 18:08:52 +02:00
whaffman
143498315b
fix: apply IWYU suggestions
2025-09-26 18:08:32 +02:00
whaffman
c841142e79
Refactor configuration handling and directive parsing
...
- Introduced AConfig class to handle common configuration functionalities.
- Added GlobalConfig class to manage multiple ServerConfig instances.
- Updated ServerConfig to utilize the new AConfig base class.
- Refactored directive parsing logic to improve clarity and maintainability.
- Enhanced utility functions for removing comments and empty lines from configuration blocks.
- Updated directive classes to use consistent naming for value retrieval methods.
- Improved logging for better traceability during configuration parsing.
- Removed unused includes and cleaned up code for better readability.
2025-09-26 18:06:37 +02:00
Quinten
c9e74ca508
feat(directives): implement directive parsing and factory pattern for configuration
2025-09-25 17:33:14 +02:00
whaffman
ba831957d4
clang-format
2025-09-24 12:04:43 +02:00
whaffman
901f766599
ran iwyu
2025-09-24 12:03:40 +02:00
Quinten Mennen
c255878b2f
feat(log): add printContext method for improved context logging
2025-09-23 16:15:07 +02:00
Quinten Mennen
f119d98c70
fix(log): get rid of source_location
2025-09-23 15:37:32 +02:00
whaffman
3eb46dba13
Enhance code formatting and organization:
...
- Add tasks for code formatting and checking in VSCode
- Update .clang-format for consistent style
- Clean up includes and formatting in various files
2025-09-22 22:59:29 +02:00
whaffman
5264139d49
Set stdout log level to Trace for improved logging detail
2025-09-22 21:49:47 +02:00
whaffman
6b85be65b8
Refactor logging system: enhance Channel and FileChannel classes to use getter/setter for log level, improve log context formatting in StdoutChannel, and update main to test logging context
2025-09-22 13:13:29 +02:00
whaffman
6803524989
Refactor logging system: replace LogLevel with Log::Level across multiple files for improved consistency and clarity
2025-09-22 12:33:18 +02:00
whaffman
358b48e407
Refactor logging: replace LOG macros with Log class methods for improved clarity and consistency
2025-09-22 12:00:53 +02:00
whaffman
c509666199
Enhance FileChannel constructor and logging setup: add openmode parameter to FileChannel and update setFileChannel method to support it
2025-09-21 21:54:03 +02:00
whaffman
58edbe86be
Refactor logging levels: change LOG_INFO to LOG_DEBUG in Client destructor and LOG_INFO to LOG_TRACE in ServerConfig for improved log granularity
2025-09-21 21:25:46 +02:00
whaffman
bac66d2a0b
Implement logging level support in Channel and its derived classes
...
- Added LogLevel parameter to Channel constructor and updated derived classes (FileChannel, StdoutChannel) to accept it.
- Modified log methods to respect the logging level, preventing lower priority logs from being processed.
- Updated Log class to set logging levels for stdout and file channels.
- Adjusted main function to initialize logging with specified levels.
2025-09-21 20:49:25 +02:00
whaffman
df97596321
Enhance code style and organization: update .clang-format for include sorting, enable parallel compilation in CMake, and clean up includes across multiple files for improved readability and consistency.
2025-09-20 23:21:23 +02:00
whaffman
94cd396ac1
Implement file logging functionality with FileChannel class and update Log class to support file output
2025-09-20 22:55:14 +02:00
whaffman
6262cda801
Refactor logging: replace std::cout with LOG macros across multiple files for consistent logging and improved readability
2025-09-20 16:23:43 +02:00
whaffman
0dcc584827
macrootje er over heen voor functie naame en lijn nummer..
2025-09-18 21:19:27 +02:00
Quinten Mennen
0d3fd346ba
Implement logging framework with Channel and StdoutChannel classes
2025-09-18 19:08:57 +02:00
Quinten Mennen
ce815d18c6
Remove unused server configuration output and clean up event loop placeholder
2025-09-18 17:41:55 +02:00
Quinten Mennen
a2db0659c6
Refactor server configuration and implementation: update listen ports in default.conf, enhance Server class with connection handling, and improve socket management in Server.cpp.
2025-09-16 17:08:10 +02:00
whaffman
94653db136
Implement server initialization: add Server class with constructor to initialize host and port from ConfigManager
2025-09-16 15:05:35 +02:00
whaffman
3ee0a607a1
Enhance configuration management: add getter methods for server configuration details, improve location handling, and update main to display server information
2025-09-14 22:55:20 +02:00
whaffman
0ae78577e7
Refactor ConfigManager and LocationConfig: comment out unused methods, improve parsing logic, and clean up includes
2025-09-14 21:19:22 +02:00
whaffman
cb88b9dc13
first config parse try
2025-09-14 21:15:32 +02:00
whaffman
48953b1c62
create ConfigManager source files
2025-09-12 11:58:56 +02:00
whaffman
f7bc063227
Refactor project structure: remove MyModule, implement ConfigManager, and enhance CMake/Makefile for multiple build types
2025-09-11 12:36:31 +02:00
whaffman
0d4bbe53b0
Refactor MyModule to use static method and update output format; add CMakeLists.txt for project build configuration
2025-09-10 22:31:27 +02:00
github-actions[bot]
ced176fc7d
Apply clang-format fixes
2025-09-10 15:58:28 +00:00
whaffman
ac39854276
Add Makefile and initial implementation of MyModule with main function
2025-09-10 17:41:04 +02:00