Files
42_irc/includes/logs.hpp
2024-02-07 16:58:38 +01:00

34 lines
1.1 KiB
C++

/******************************************************************************/
/* */
/* ::: :::::::: */
/* logs.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 09:15:24 by maldavid #+# #+# */
/* Updated: 2024/02/07 16:52:54 by maldavid ### ########.fr */
/* */
/******************************************************************************/
#ifndef __LOGS__
#define __LOGS__
#include <string>
namespace irc
{
enum LogType
{
log_message = 0,
log_warning,
log_error
};
namespace logs
{
void report(LogType type, std::string message, ...); // message is not a const reference due to va_args
}
}
#endif