adding logs
This commit is contained in:
34
includes/logs.hpp
Normal file
34
includes/logs.hpp
Normal 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
|
||||
Reference in New Issue
Block a user