|
VICI
0.11.815
Visual Chart Interpreter
|
A streambuf class specialized for logging. More...
Public Member Functions | |
| logbuff () | |
| default constructor | |
| logbuff (csr) | |
| constructor for named log | |
| virtual | ~logbuff () |
| destructor | |
| void | severity (Severity s) |
| set severity | |
Protected Member Functions | |
| void | init () |
| initialize using details from the XINI config | |
| int | flushBuffer () |
| virtual int | overflow (int c) |
| virtual int | sync () |
Protected Attributes | |
| char | buffer [bufferSize] |
| message collected into here | |
| Severity | sev |
| the current severity level | |
| logger * | mLogger |
| thing for writing the message | |
| string | name |
| name to use in the XINI configuration | |
Static Protected Attributes | |
| static const int | bufferSize = 128 |
| limit line size in log files. | |
A streambuf class specialized for logging.
This is a private implementation class.
|
protected |
we have a line for the log - we now delegate this to the log function that has been selected by the user.
|
protectedvirtual |
this gets called when the buffer fills. Since we are writing to a log file, this happens whenever the line length exceeds the buffer size.
|
protectedvirtual |
this gets called when 'endl' or 'flush' is called on the stream.
1.8.5