mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:38:47 +02:00
「🏗️」 wip: reformated request include folder
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user