adding logs

This commit is contained in:
Kbz-8
2024-01-21 10:01:32 +01:00
parent d9d6bb3a8c
commit 4374f826ea
6 changed files with 138 additions and 10 deletions

34
includes/logs.hpp Normal file
View File

@@ -0,0 +1,34 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* logs.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 09:15:24 by maldavid #+# #+# */
/* Updated: 2024/01/21 09:30:07 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __LOGS__
#define __LOGS__
#include <string>
namespace irc
{
enum LogType
{
log_message = 0,
log_warning,
log_error,
log_fatal_error
};
namespace logs
{
void report(LogType type, std::string message, ...); // message is not a const reference due to va_args
}
}
#endif