Skip to content

Class daisy::Logger< LOGGER_NONE >

template <>

ClassList > daisy > Logger< LOGGER_NONE >

More...

  • #include <logger.h>

Public Functions

Type Name
Logger ()

Public Static Functions

Type Name
std::enable_if_t< D==LOGGER_UART > Configure (const LoggerImpl< LOGGER_UART >::Config cfg)
void Print (const char * format, ...)
void PrintLine (const char * format, ...)
void PrintLineV (const char * format, va_list va)
void PrintV (const char * format, va_list va)
void StartLog (bool wait_for_pc=false)

Protected Types

Type Name
enum LoggerConsts

Protected Static Attributes

Type Name
LoggerImpl< dest > impl_
size_t pc_sync_
char tx_buff_
size_t tx_ptr_

Protected Static Functions

Type Name
void AppendNewLine ()
size_t NewLineSeqLength ()
void TransmitBuf ()
void TransmitSync (const void * buffer, size_t bytes)

Detailed Description

Specialization for a muted log

Public Functions Documentation

function Logger

inline daisy::Logger< LOGGER_NONE >::Logger () 

Public Static Functions Documentation

function Configure

static inline std::enable_if_t< D== LOGGER_UART > daisy::Logger< LOGGER_NONE >::Configure (
    const LoggerImpl < LOGGER_UART >::Config cfg
) 

Configuration specialization for UART Logging Only available for UART logger.


function Print

static inline void daisy::Logger< LOGGER_NONE >::Print (
    const char * format,
    ...
) 

function PrintLine

static inline void daisy::Logger< LOGGER_NONE >::PrintLine (
    const char * format,
    ...
) 

function PrintLineV

static inline void daisy::Logger< LOGGER_NONE >::PrintLineV (
    const char * format,
    va_list va
) 

function PrintV

static inline void daisy::Logger< LOGGER_NONE >::PrintV (
    const char * format,
    va_list va
) 

function StartLog

static inline void daisy::Logger< LOGGER_NONE >::StartLog (
    bool wait_for_pc=false
) 

Protected Types Documentation

enum LoggerConsts

enum daisy::Logger< LOGGER_NONE >::LoggerConsts;

Internal constants


Protected Static Attributes Documentation

variable impl_

LoggerImpl<dest> daisy::Logger< dest >::impl_;

underlying trasnfer implementation


variable pc_sync_

size_t daisy::Logger< dest >::pc_sync_;

terminal synchronization state


variable tx_buff_

char daisy::Logger< dest >::tx_buff_[128];

member variables buffer for log data


variable tx_ptr_

size_t daisy::Logger< dest >::tx_ptr_;

current position in the buffer


Protected Static Functions Documentation

function AppendNewLine

static void daisy::Logger< LOGGER_NONE >::AppendNewLine () 

Trim control characters and append clean newline sequence, if there's room in the buffer


function NewLineSeqLength

static inline size_t daisy::Logger< LOGGER_NONE >::NewLineSeqLength () 

Constexpr function equivalent of strlen(LOGGER_NEWLINE)


function TransmitBuf

static void daisy::Logger< LOGGER_NONE >::TransmitBuf () 

Transfer accumulated data


function TransmitSync

static inline void daisy::Logger< LOGGER_NONE >::TransmitSync (
    const void * buffer,
    size_t bytes
) 

Blocking wrapper for Transmit()



The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/logger.h