1
0
This repository has been archived on 2025-01-26. You can view files and clone it, but cannot push or open issues or pull requests.

23 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* log.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/30 16:30:53 by adjoly #+# #+# */
/* Updated: 2024/11/30 16:32:37 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include <string>
void log(std::string emoji, std::string what, std::string who, std::string str) {
if (who.empty())
std::cout << "" << emoji << "" << what << ": " << str << std::endl;
else
std::cout << "" << emoji << "" << what << "(" << who << "): " << str << std::endl;
}