🏗️」 wip: reformated request include folder

This commit is contained in:
2025-04-30 09:37:21 +02:00
parent 5a22af3c5a
commit 41efd2c19e
15 changed files with 315 additions and 343 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/20 09:28:27 by adjoly #+# #+# */
/* Updated: 2025/04/28 14:29:54 by adjoly ### ########.fr */
/* Updated: 2025/04/29 17:28:36 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -40,10 +40,10 @@ inline void log(std::string emoji, std::string who, std::string str) {
class Logger {
public:
Logger(void) : _ttyOnly(true) {
//log("", "Logger", "default constructor called");
log("", "Logger", "default constructor called");
}
Logger(const std::string &fileName) : _fileName(fileName) {
//log("", "Logger", "filename constructor called");
log("", "Logger", "filename constructor called");
_file.open(fileName.c_str(), std::ios::app);
if (!_file.is_open() && !_ttyOnly) {
_ttyOnly = true;
@ -53,7 +53,7 @@ class Logger {
}
Logger(const Logger &other) : _ttyOnly(other._ttyOnly) {
//log("", "Logger", "copy constructor called");
log("", "Logger", "copy constructor called");
if (!other._ttyOnly) {
_file.open(other._fileName.c_str(), std::ios::app);
if (!_file.is_open()) {