- BufferCore: - Method WriteToFD should ignore EAGAIN - LogCore: - Add OUT_COUNT output bit (show total output bytes) - SelectableCore: - Add Force param on WriteToFD, ignore EAGAIN if !Force
41 lines
1021 B
C
41 lines
1021 B
C
/*
|
|
* LogCore.h
|
|
*
|
|
* Created on: 17 May 2016
|
|
* Author: wentzelc
|
|
*/
|
|
|
|
#ifndef REDACORE_LOGCORE_H_
|
|
#define REDACORE_LOGCORE_H_
|
|
|
|
// redA Libraries
|
|
/* none */
|
|
|
|
// Standard C/C++ Libraries
|
|
/* none */
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Debug options
|
|
const short
|
|
OUT_COUNT = 1,
|
|
OUT_NORMAL = 2,
|
|
OUT_HEX = 4,
|
|
OUT_BIN = 8,
|
|
OUT_CRLF = 16,
|
|
OUT_ASIS = 32;
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
typedef enum { dlNone = 0, dlLow = 1, dlMedium = 2, dlHigh = 3 } EDebugLevel;
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
bool LogMessage( EDebugLevel DebugLevel, EDebugLevel MsgLevel, const char * Format, ... );
|
|
|
|
bool ShowOutput( EDebugLevel DebugLevel, EDebugLevel MsgLevel, const short Show, const char * Buffer, int Len, const char * Format, ... );
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif /* REDACORE_OGCORE_H_ */
|