Player12
An open source football management simulator
Loading...
Searching...
No Matches
logger.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <string>
12
17class Logger
18{
19 public:
24 static void init();
25
30 static void info(const std::string& msg);
31
36 static void error(const std::string& msg);
37
42 static void debug(const std::string& msg);
43
48 static void warn(const std::string& msg);
49
51 static void flush();
52};
Provides simple logging utilities.
Definition logger.h:18
static void error(const std::string &msg)
Logs an error message.
Definition logger.cpp:61
static void flush()
Definition logger.cpp:63
static void debug(const std::string &msg)
Logs a debug message.
Definition logger.cpp:68
static void init()
Initializes the logging system. The previous session's log is kept as RuntimePaths::previousLogPath()...
Definition logger.cpp:33
static void warn(const std::string &msg)
Logs a warning message.
Definition logger.cpp:62
static void info(const std::string &msg)
Logs an informational message.
Definition logger.cpp:60