REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
logging.h File Reference
#include <Arduino.h>
#include <array>
#include <ostream>
#include <type_traits>
#include <vector>
#include "protocol/jsonl_logging.h"
#include "StreamUtils.h"
Include dependency graph for logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_TARGET   msg::Log::get()
 
#define __LOG(message)
 
#define LOG(LOG_FLAG, message)
 
#define LOG_ERROR(message)
 
#define LOG_ALWAYS(message)
 
#define LOG_ANABRID_DEBUG(message)
 
#define LOG_ANABRID_DEBUG_INIT(message)
 
#define LOG_ANABRID_DEBUG_STATE(message)
 
#define LOG_ANABRID_DEBUG_DAQ(message)
 
#define LOG_ANABRID_PEDANTIC(message)
 
#define LOG_ANABRID_DEBUG_CALIBRATION(message)
 
#define _ERROR_OUT_
 
#define LOGV(message, ...)
 
#define LOGMEV(message, ...)
 
#define LOG2(a, b)
 
#define LOG3(a, b, c)
 
#define LOG4(a, b, c, d)
 
#define LOG5(a, b, c, d, e)
 
#define LOG_START(message)
 
#define LOG_ITEM(message)
 
#define LOG_END(message)
 

Functions

template<typename T , size_t size>
std::ostream & operator<< (std::ostream &os, const std::array< T, size > &arr)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &vec)
 

Macro Definition Documentation

◆ __LOG

#define __LOG ( message)
Value:
LOG_TARGET.println(message);
#define LOG_TARGET
Definition logging.h:23

Definition at line 30 of file logging.h.

◆ _ERROR_OUT_

#define _ERROR_OUT_
Value:
while (true) { \
digitalToggle(13); \
delay(100); \
}

Definition at line 82 of file logging.h.

◆ LOG

◆ LOG2

#define LOG2 ( a,
b )
Value:
{ \
LOG_TARGET.print("# "); \
LOG_TARGET.print(a); \
LOG_TARGET.println(b); \
}

Definition at line 97 of file logging.h.

Referenced by net::StartupConfig::begin_ip(), and msg::JsonLinesProtocol::process_tcp_input().

◆ LOG3

#define LOG3 ( a,
b,
c )
Value:
{ \
LOG_TARGET.print("# "); \
LOG_TARGET.print(a); \
LOG_TARGET.print(b); \
LOG_TARGET.println(c); \
}

Definition at line 103 of file logging.h.

Referenced by websocket_upgrade().

◆ LOG4

◆ LOG5

#define LOG5 ( a,
b,
c,
d,
e )
Value:
{ \
LOG_TARGET.print("# "); \
LOG_TARGET.print(a); \
LOG_TARGET.print(b); \
LOG_TARGET.print(c); \
LOG_TARGET.print(d); \
LOG_TARGET.println(e); \
}

Definition at line 118 of file logging.h.

Referenced by msg::JsonlServer::loop(), and web::LucidacWebServer::loop().

◆ LOG_ALWAYS

◆ LOG_ANABRID_DEBUG

#define LOG_ANABRID_DEBUG ( message)
Value:
((void)0)

Definition at line 48 of file logging.h.

◆ LOG_ANABRID_DEBUG_CALIBRATION

#define LOG_ANABRID_DEBUG_CALIBRATION ( message)

◆ LOG_ANABRID_DEBUG_DAQ

#define LOG_ANABRID_DEBUG_DAQ ( message)
Value:
((void)0)

Definition at line 66 of file logging.h.

◆ LOG_ANABRID_DEBUG_INIT

#define LOG_ANABRID_DEBUG_INIT ( message)
Value:
((void)0)

Definition at line 54 of file logging.h.

◆ LOG_ANABRID_DEBUG_STATE

#define LOG_ANABRID_DEBUG_STATE ( message)
Value:
((void)0)

Definition at line 60 of file logging.h.

◆ LOG_ANABRID_PEDANTIC

#define LOG_ANABRID_PEDANTIC ( message)
Value:
((void)0)

Definition at line 72 of file logging.h.

◆ LOG_END

#define LOG_END ( message)
Value:
LOG_TARGET.println(message);

Definition at line 135 of file logging.h.

◆ LOG_ERROR

◆ LOG_ITEM

#define LOG_ITEM ( message)
Value:
LOG_TARGET.print(message);

Definition at line 134 of file logging.h.

◆ LOG_START

#define LOG_START ( message)
Value:
{ \
LOG_TARGET.print("# "); \
LOG_TARGET.print(message); \
}

Definition at line 129 of file logging.h.

◆ LOG_TARGET

#define LOG_TARGET   msg::Log::get()

Definition at line 23 of file logging.h.

◆ LOGMEV

#define LOGMEV ( message,
... )

◆ LOGV

#define LOGV ( message,
... )
Value:
{ LOG_TARGET.printf("# " message "\n", __VA_ARGS__); }

Definition at line 91 of file logging.h.

Referenced by setup(), and loader::FirmwareFlasher::stream().

Function Documentation

◆ operator<<() [1/2]

template<typename T , size_t size>
std::ostream & operator<< ( std::ostream & os,
const std::array< T, size > & arr )

Definition at line 143 of file logging.h.

◆ operator<<() [2/2]

template<typename T >
std::ostream & operator<< ( std::ostream & os,
const std::vector< T > & vec )

Definition at line 162 of file logging.h.