fastdo
0.6.16
|
#include "eiennet.hpp"
类 | |
union | eienlog::LogFlag |
日志样式旗标 更多... | |
struct | eienlog::LogChunkHeader |
日志分块头部 更多... | |
struct | eienlog::LogChunk |
日志分块 更多... | |
struct | eienlog::LogRecord |
日志记录 更多... | |
class | eienlog::LogWriter |
日志写入器 更多... | |
class | eienlog::LogReader |
日志读取器 更多... | |
struct | eienlog::LogReader::LogChunksData |
命名空间 | |
eienlog | |
日志功能,通过UDP协议高效的收发日志 | |
宏定义 | |
#define | EIENLOG_DLL |
#define | EIENLOG_API |
#define | EIENLOG_FUNC_DECL(ret) EIENLOG_DLL ret EIENLOG_API |
#define | EIENLOG_FUNC_IMPL(ret) ret EIENLOG_API |
#define | LOG_CHUNK_SIZE 80 |
#define | LOG_FG_COLOR(r, g, b) (winux::uint16)( (r) | ( (g) << 5 ) | ( (b) << 10 ) ) |
前景色: R5G5B5 更多... | |
#define | LOG_BG_COLOR(r, g, b) (winux::uint16)( (r) | ( (g) << 4 ) | ( (b) << 8 ) ) |
背景色: R4G4B4 更多... | |
#define | LOG(s) |
#define | LOG_BIN(d, s) |
枚举 | |
enum | eienlog::LogEncoding { eienlog::leLocal, eienlog::leUtf8, eienlog::leUtf16Le, eienlog::leUtf16Be } |
日志编码。Local 表示本地多字节编码,不同国家可能不同 更多... | |
enum | eienlog::LogFgColor : winux::uint16 { eienlog::lfcBlack = (winux::uint16)( ( 0 ) | ( ( 0 ) << 5 ) | ( ( 0 ) << 10 ) ), eienlog::lfcMaroon = (winux::uint16)( ( 16 ) | ( ( 0 ) << 5 ) | ( ( 0 ) << 10 ) ), eienlog::lfcAtrovirens = (winux::uint16)( ( 0 ) | ( ( 16 ) << 5 ) | ( ( 0 ) << 10 ) ), eienlog::lfcOlive = lfcMaroon | lfcAtrovirens, eienlog::lfcNavy = (winux::uint16)( ( 0 ) | ( ( 0 ) << 5 ) | ( ( 16 ) << 10 ) ), eienlog::lfcPurple = lfcMaroon | lfcNavy, eienlog::lfcTeal = lfcAtrovirens | lfcNavy, eienlog::lfcGray = lfcMaroon | lfcAtrovirens | lfcNavy, eienlog::lfcSilver = (winux::uint16)( ( 24 ) | ( ( 24 ) << 5 ) | ( ( 24 ) << 10 ) ), eienlog::lfcRed = (winux::uint16)( ( 31 ) | ( ( 0 ) << 5 ) | ( ( 0 ) << 10 ) ), eienlog::lfcGreen = (winux::uint16)( ( 0 ) | ( ( 31 ) << 5 ) | ( ( 0 ) << 10 ) ), eienlog::lfcYellow = lfcRed | lfcGreen, eienlog::lfcBlue = (winux::uint16)( ( 0 ) | ( ( 0 ) << 5 ) | ( ( 31 ) << 10 ) ), eienlog::lfcFuchsia = lfcRed | lfcBlue, eienlog::lfcAqua = lfcGreen | lfcBlue, eienlog::lfcWhite = lfcRed | lfcGreen | lfcBlue } |
日志颜色 更多... | |
enum | eienlog::LogBgColor : winux::uint16 { eienlog::lbcBlack = (winux::uint16)( ( 0 ) | ( ( 0 ) << 4 ) | ( ( 0 ) << 8 ) ), eienlog::lbcMaroon = (winux::uint16)( ( 8 ) | ( ( 0 ) << 4 ) | ( ( 0 ) << 8 ) ), eienlog::lbcAtrovirens = (winux::uint16)( ( 0 ) | ( ( 8 ) << 4 ) | ( ( 0 ) << 8 ) ), eienlog::lbcOlive = lbcMaroon | lbcAtrovirens, eienlog::lbcNavy = (winux::uint16)( ( 0 ) | ( ( 0 ) << 4 ) | ( ( 8 ) << 8 ) ), eienlog::lbcPurple = lbcMaroon | lbcNavy, eienlog::lbcTeal = lbcAtrovirens | lbcNavy, eienlog::lbcGray = lbcMaroon | lbcAtrovirens | lbcNavy, eienlog::lbcSilver = (winux::uint16)( ( 12 ) | ( ( 12 ) << 4 ) | ( ( 12 ) << 8 ) ), eienlog::lbcRed = (winux::uint16)( ( 15 ) | ( ( 0 ) << 4 ) | ( ( 0 ) << 8 ) ), eienlog::lbcGreen = (winux::uint16)( ( 0 ) | ( ( 15 ) << 4 ) | ( ( 0 ) << 8 ) ), eienlog::lbcYellow = lbcRed | lbcGreen, eienlog::lbcBlue = (winux::uint16)( ( 0 ) | ( ( 0 ) << 4 ) | ( ( 15 ) << 8 ) ), eienlog::lbcFuchsia = lbcRed | lbcBlue, eienlog::lbcAqua = lbcGreen | lbcBlue, eienlog::lbcWhite = lbcRed | lbcGreen | lbcBlue } |
日志背景颜色 更多... | |
函数 | |
bool | eienlog::EnableLog (winux::String const &addr=$"127.0.0.1", winux::ushort port=22345, winux::uint16 chunkSize=80) |
启用日志 更多... | |
void | eienlog::DisableLog () |
禁用日志 更多... | |
void | eienlog::WriteLog (winux::String const &str) |
写字符串日志(带进程ID) 更多... | |
void | eienlog::WriteLogBin (void const *data, size_t size) |
写二进制日志 更多... | |
size_t | eienlog::Log (winux::String const &str, winux::uint8 logEncoding=leUtf8) |
写字符串日志 更多... | |
size_t | eienlog::LogBin (winux::Buffer const &data) |
写二进制日志 更多... | |
size_t | eienlog::LogColor (winux::String const &str, winux::Mixed const &fgColor=winux::mxNull, winux::Mixed const &bgColor=winux::mxNull, winux::uint8 logEncoding=leUtf8) |
写字符串日志。可设置颜色参数 更多... | |
size_t | eienlog::LogBinColor (winux::Buffer const &data, winux::Mixed const &fgColor=winux::mxNull, winux::Mixed const &bgColor=winux::mxNull) |
写二进制日志。可设置颜色参数 更多... | |
template<typename... _ArgType> | |
static void | eienlog::LogColorOutput (winux::Mixed const &fgColor, winux::Mixed const &bgColor, _ArgType &&...arg) |
#define EIENLOG_DLL |
在文件 eienlog.hpp 第 24 行定义.
#define EIENLOG_API |
在文件 eienlog.hpp 第 25 行定义.
#define EIENLOG_FUNC_DECL | ( | ret | ) | EIENLOG_DLL ret EIENLOG_API |
在文件 eienlog.hpp 第 28 行定义.
#define EIENLOG_FUNC_IMPL | ( | ret | ) | ret EIENLOG_API |
在文件 eienlog.hpp 第 29 行定义.
#define LOG_CHUNK_SIZE 80 |
在文件 eienlog.hpp 第 33 行定义.
#define LOG_FG_COLOR | ( | r, | |
g, | |||
b | |||
) | (winux::uint16)( (r) | ( (g) << 5 ) | ( (b) << 10 ) ) |
前景色: R5G5B5
在文件 eienlog.hpp 第 45 行定义.
#define LOG_BG_COLOR | ( | r, | |
g, | |||
b | |||
) | (winux::uint16)( (r) | ( (g) << 4 ) | ( (b) << 8 ) ) |
背景色: R4G4B4
在文件 eienlog.hpp 第 48 行定义.
#define LOG | ( | s | ) |
在文件 eienlog.hpp 第 294 行定义.
#define LOG_BIN | ( | d, | |
s | |||
) |
在文件 eienlog.hpp 第 295 行定义.