|
ngscopeclient v0.1
|
A log sink writing to a FILE* file handle. More...
#include <log.h>


Public Member Functions | |
| FILELogSink (FILE *f, bool line_buffered=false, Severity min_severity=Severity::VERBOSE) | |
| void | Log (Severity severity, const std::string &msg) override |
| void | Log (Severity severity, const char *format, va_list va) override |
Public Member Functions inherited from LogSink | |
| LogSink (Severity min_severity=Severity::VERBOSE) | |
| Severity | GetSeverity () |
| Returns the current severity / verbosity level. | |
| void | SetSeverity (Severity sev) |
| Update the current severity level. | |
| std::string | GetIndentString () |
| Gets the indent string (for now, only used by STDLogSink) More... | |
| virtual void | Log (Severity severity, const std::string &msg)=0 |
| virtual void | Log (Severity severity, const char *format, va_list va)=0 |
| std::string | vstrprintf (const char *format, va_list va) |
| Like sprintf, but self-managing a buffer with a std::string. | |
Protected Attributes | |
| FILE * | m_file |
Protected Attributes inherited from LogSink | |
| unsigned int | m_indentSize |
| Number of spaces in one indentation. | |
| unsigned int | m_termWidth |
| Width of the console we're printing to, in characters. | |
| bool | m_lastMessageWasNewline |
| True if the last message ended in a character. | |
| Severity | m_min_severity |
| Minimum severity of messages to be printed. | |
Additional Inherited Members | |
Protected Member Functions inherited from LogSink | |
| std::string | WrapString (std::string str) |
| Wraps long lines and adds indentation as needed. | |
| virtual void | PreprocessLine (std::string &line) |
| Do any processing required to a line before printing it. Nothing in the base class. More... | |
A log sink writing to a FILE* file handle.
|
overridevirtual |
Implements LogSink.
|
overridevirtual |
Implements LogSink.