-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathGlobalLogger.h
More file actions
27 lines (20 loc) · 833 Bytes
/
GlobalLogger.h
File metadata and controls
27 lines (20 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Global Logger
*
* From: https://github.com/PokemonAutomation/
*
* Provides a global file logger instance for application-wide logging.
* This is a Qt-free logger that can be used before Qt is initialized.
*/
#ifndef PokemonAutomation_Logging_GlobalLogger_H
#define PokemonAutomation_Logging_GlobalLogger_H
#include "FileLogger.h"
namespace PokemonAutomation{
// Return a global raw `FileLogger`. `FileLogger` is defined in FileLogger.h.
// "raw" here means the logger does not add any timestamp or tags to the incoming log lines.
//
// To initialize the global logger, implement `FileLoggerConfig make_global_config()` at
// Main.cpp to return the config for the global logger. If this function is not implemented,
// the program will not compile.
Logger& global_logger_raw();
}
#endif