The LogWriter class writes to stdout. More...
#include <Logger.h>

Public Member Functions | |
| LogWriter (const String &name) | |
| Constructor. More... | |
| void | set_level (int level) |
| Sets the message level; all messages with a higher level are discarded. More... | |
| int | get_level () const |
| Returns the message level. More... | |
| bool | is_enabled (int level) const |
| Returns true if a message with this level is not discarded. More... | |
| void | set_test_mode (int fd=-1) |
| The test mode disables line numbers and timestamps and can redirect the output to a separate file descriptor. More... | |
| bool | show_line_numbers () const |
| Returns true if line numbers are printed. More... | |
| void | flush () |
| Flushes the log file. More... | |
| void | debug (const char *format,...) |
| Prints a debug message with variable arguments (similar to printf) More... | |
| void | debug (const String &message) |
| Prints a debug message. More... | |
| void | log (int priority, const char *format,...) |
| Prints a message with variable arguments. More... | |
| void | log (int priority, const String &message) |
| Prints a message. More... | |
Private Member Functions | |
| void | log_string (int priority, const char *message) |
| Appends a string message to the log. More... | |
| void | log_varargs (int priority, const char *format, va_list ap) |
| Appends a string message with variable arguments to the log. More... | |
Private Attributes | |
| bool | m_show_line_numbers |
| True if line numbers are shown. More... | |
| bool | m_test_mode |
| True if this log is in test mode. More... | |
| String | m_name |
| The name of the application. More... | |
| int | m_priority |
| The current priority (everything above is filtered) More... | |
| FILE * | m_file |
| The output file handle. More... | |
The LogWriter class writes to stdout.
It's not used directly, but rather through the macros below (i.e. HT_ERROR_OUT, HT_ERRORF etc).
|
inline |
| void Hypertable::Logger::LogWriter::debug | ( | const char * | format, |
| ... | |||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void Hypertable::Logger::LogWriter::log | ( | int | priority, |
| const char * | format, | ||
| ... | |||
| ) |
|
inline |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8