-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathLogger.h
More file actions
30 lines (22 loc) · 852 Bytes
/
Logger.h
File metadata and controls
30 lines (22 loc) · 852 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
28
29
30
/* Logger
*
* From: https://github.com/PokemonAutomation/
*
* Provides global logger accessors for the application.
* The core logging types (TaggedLogger, etc.) are in Common/Cpp/Logging/.
*/
#ifndef PokemonAutomation_Logging_Logger_H
#define PokemonAutomation_Logging_Logger_H
#include "Common/Cpp/Logging/AbstractLogger.h"
#include "Common/Cpp/Logging/GlobalLogger.h"
namespace PokemonAutomation{
// This logger wraps around `global_logger_raw()` to print each log with a
// timestamp and a default tag "Global". Use this logger directly in the
// application codebase.
Logger& global_logger_tagged();
// This logger wraps around `global_logger_raw()` to also print the log
// into command line using std::cout.
// Useful for running command line tests.
Logger& global_logger_command_line();
}
#endif