CTRE Phoenix C++ 5.33.1
CTRLogger.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#include "ctre/phoenix/ErrorCode.h" // ErrorCode
3#include <string>
4
5namespace ctre {
6namespace phoenix {
7
8/**
9 * Object to handle error logging
10 */
11class CTRLogger {
12public:
13 /**
14 * Close the logger
15 */
16 static void Close();
17 /**
18 * Logs an entry into the Phoenix DS Error/Logger stream
19 * @param code Error code to log. If OKAY is passed, no action is taken.
20 * @param origin Origin string to send to DS/Log
21 * @return OKAY error code.
22 */
23 static ErrorCode Log(ErrorCode code, const char * dev, const char * func);
24 /**
25 * Open the logger
26 * @param language the language you're using
27 */
28 static void Open(int language);
29 //static void Description(ErrorCode code, const char *&shrt, const char *&lng);
30};
31
32}
33}
Object to handle error logging.
Definition: CTRLogger.h:11
static ErrorCode Log(ErrorCode code, const char *dev, const char *func)
Logs an entry into the Phoenix DS Error/Logger stream.
static void Close()
Close the logger.
static void Open(int language)
Open the logger.
ErrorCode
Definition: ErrorCode.h:13
namespace ctre
Definition: paramEnum.h:5