soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SLogStream Class Reference

日志流类,用于格式化日志输出 More...

#include <slog.h>

Public Member Functions

 SLogStream (char *buf, int len)
 构造函数
 
SLogStreamoperator<< (const void *t)
 重载运算符<<,用于输出各种类型的数据
 
SLogStreamoperator<< (const char *t)
 
SLogStreamoperator<< (const wchar_t *t)
 
SLogStreamoperator<< (bool t)
 
SLogStreamoperator<< (char t)
 
SLogStreamoperator<< (wchar_t t)
 
SLogStreamoperator<< (unsigned char t)
 
SLogStreamoperator<< (short t)
 
SLogStreamoperator<< (unsigned short t)
 
SLogStreamoperator<< (int t)
 
SLogStreamoperator<< (unsigned int t)
 
SLogStreamoperator<< (long t)
 
SLogStreamoperator<< (unsigned long t)
 
SLogStreamoperator<< (long long t)
 
SLogStreamoperator<< (unsigned long long t)
 
SLogStreamoperator<< (float t)
 
SLogStreamoperator<< (double t)
 
SLogStreamoperator<< (const SLogBinary &binary)
 
SLogStreamwriteFormat (const char *format,...)
 格式化输出日志
 
SLogStreamwriteFormat (const wchar_t *format,...)
 

Detailed Description

日志流类,用于格式化日志输出

Definition at line 48 of file slog.h.

Constructor & Destructor Documentation

◆ SLogStream()

SLogStream::SLogStream ( char * buf,
int len )

构造函数

Parameters
buf缓冲区指针
len缓冲区长度

Definition at line 154 of file slog.cpp.

Member Function Documentation

◆ operator<<() [1/18]

SLogStream & SLogStream::operator<< ( bool t)

Definition at line 313 of file slog.cpp.

◆ operator<<() [2/18]

SLogStream & SLogStream::operator<< ( char t)

Definition at line 303 of file slog.cpp.

◆ operator<<() [3/18]

SLogStream & SLogStream::operator<< ( const char * t)

Definition at line 323 of file slog.cpp.

◆ operator<<() [4/18]

SLogStream & SLogStream::operator<< ( const SLogBinary & binary)

Definition at line 243 of file slog.cpp.

◆ operator<<() [5/18]

SLogStream & SLogStream::operator<< ( const void * t)

重载运算符<<,用于输出各种类型的数据

Definition at line 328 of file slog.cpp.

◆ operator<<() [6/18]

SLogStream & SLogStream::operator<< ( const wchar_t * t)

Definition at line 318 of file slog.cpp.

◆ operator<<() [7/18]

SLogStream & SLogStream::operator<< ( double t)

Definition at line 248 of file slog.cpp.

◆ operator<<() [8/18]

SLogStream & SLogStream::operator<< ( float t)

Definition at line 253 of file slog.cpp.

◆ operator<<() [9/18]

SLogStream & SLogStream::operator<< ( int t)

Definition at line 283 of file slog.cpp.

◆ operator<<() [10/18]

SLogStream & SLogStream::operator<< ( long long t)

Definition at line 263 of file slog.cpp.

◆ operator<<() [11/18]

SLogStream & SLogStream::operator<< ( long t)

Definition at line 273 of file slog.cpp.

◆ operator<<() [12/18]

SLogStream & SLogStream::operator<< ( short t)

Definition at line 293 of file slog.cpp.

◆ operator<<() [13/18]

SLogStream & SLogStream::operator<< ( unsigned char t)

Definition at line 298 of file slog.cpp.

◆ operator<<() [14/18]

SLogStream & SLogStream::operator<< ( unsigned int t)

Definition at line 278 of file slog.cpp.

◆ operator<<() [15/18]

SLogStream & SLogStream::operator<< ( unsigned long long t)

Definition at line 258 of file slog.cpp.

◆ operator<<() [16/18]

SLogStream & SLogStream::operator<< ( unsigned long t)

Definition at line 268 of file slog.cpp.

◆ operator<<() [17/18]

SLogStream & SLogStream::operator<< ( unsigned short t)

Definition at line 288 of file slog.cpp.

◆ operator<<() [18/18]

SLogStream & SLogStream::operator<< ( wchar_t t)

Definition at line 308 of file slog.cpp.

◆ writeFormat() [1/2]

SLogStream & SLogStream::writeFormat ( const char * format,
... )

格式化输出日志

Parameters
format格式字符串
...可变参数列表

Definition at line 217 of file slog.cpp.

◆ writeFormat() [2/2]

SLogStream & SLogStream::writeFormat ( const wchar_t * format,
... )

Definition at line 192 of file slog.cpp.


The documentation for this class was generated from the following files: