|
| int | overflow (int ch) override |
| |
| std::streamsize | xsputn (const char *s, std::streamsize count) override |
| |
| int | sync () override |
| |
Definition at line 155 of file Logger.h.
◆ LineToLoggerBuf()
| Logger::LineToLoggerBuf::LineToLoggerBuf |
( |
std::string | channel, |
|
|
std::optional< Level > | forced = std::nullopt ) |
|
inlineexplicit |
Definition at line 159 of file Logger.h.
159 :
std::optional< Level > forcedLevel_
◆ flushLine_()
| void Logger::LineToLoggerBuf::flushLine_ |
( |
| ) |
|
|
inlineprivate |
Definition at line 201 of file Logger.h.
202 {
203 if (!
buf_.empty() &&
buf_.back() ==
'\n')
207 else
210 }
static Logger & instance()
◆ overflow()
| int Logger::LineToLoggerBuf::overflow |
( |
int | ch | ) |
|
|
inlineoverrideprotected |
Definition at line 163 of file Logger.h.
164 {
165 if (ch == traits_type::eof())
167 char c = static_cast<char>(ch);
169 if (c == '\n')
171 return ch;
172 }
◆ sync()
| int Logger::LineToLoggerBuf::sync |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 185 of file Logger.h.
186 {
188 {
189 if (
buf_.back() ==
'\n')
193 else
196 }
197 return 0;
198 }
◆ xsputn()
| std::streamsize Logger::LineToLoggerBuf::xsputn |
( |
const char * | s, |
|
|
std::streamsize | count ) |
|
inlineoverrideprotected |
Definition at line 173 of file Logger.h.
174 {
175 std::streamsize w = 0;
176 for (; w < count; ++w)
177 {
178 char c = s[w];
180 if (c == '\n')
182 }
183 return w;
184 }
◆ buf_
| std::string Logger::LineToLoggerBuf::buf_ |
|
private |
◆ channel_
| std::string Logger::LineToLoggerBuf::channel_ |
|
private |
◆ forcedLevel_
| std::optional<Level> Logger::LineToLoggerBuf::forcedLevel_ |
|
private |
The documentation for this class was generated from the following file: