🏗️」 wip: started mainloop added help and file parsing

This commit is contained in:
2025-04-11 12:13:27 +02:00
parent 504ba7c66c
commit bb841f90c8
7 changed files with 79 additions and 139 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/10 13:43:54 by adjoly #+# #+# */
/* Updated: 2025/04/10 13:58:52 by adjoly ### ########.fr */
/* Updated: 2025/04/11 11:36:22 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,3 +14,5 @@
#define SAMPLE_CONF_PATH "./sample.conf"
#define WEBSRV_VERSION "v0.1"
bool help(int, char **);

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/20 09:28:27 by adjoly #+# #+# */
/* Updated: 2025/04/10 14:21:46 by adjoly ### ########.fr */
/* Updated: 2025/04/11 11:54:37 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -103,9 +103,9 @@ class Logger {
os << type << "(" << what << "):" << msg;
#else
if (what.empty())
os << "" << emoji << "" << type << ":" << msg;
os << "" << emoji << "" << type << ": " << msg;
else
os << "" << emoji << "" << type << "(" << what << "):" << msg;
os << "" << emoji << "" << type << "(" << what << "): " << msg;
#endif
return os.str();
}