#include <StdOutLogger.h>
|
| StdOutLogger () |
|
virtual int | log_open (u_long groups_) |
| Open StdErr Logger. More...
|
|
virtual int | log_close (void) |
|
virtual int | log_msg (Group g_, size_t indent_level_, const string &func_name_, size_t expected_sz_, const char *fmt_, va_list) |
|
virtual int | log_func (Group g_, size_t indent_level_, const string &func_name_, marker_t type_) |
|
virtual void | log_resync () |
|
| Logger_Impl () |
|
virtual | ~Logger_Impl () |
|
void | enable_group (Group g_) |
|
void | disable_group (Group g_) |
|
void | enable_groups (u_long g_) |
|
void | disable_groups (u_long g_) |
|
void | enable_all_groups (void) |
|
void | disable_all_groups (void) |
|
bool | group_enabled (Group g_) const |
|
void | enable_timestamp (void) |
|
void | disable_timestamp (void) |
|
bool | timestamp_enabled (void) const |
|
void | set_timezone (int zone_) |
|
void | set_indent_step (u_short step_) |
|
u_short | get_indent_step (void) const |
|
virtual int | log_open (const char *logfname_, u_long groups_, u_long maxsize_) |
| Open File Logger. More...
|
|
virtual int | log_open (const char *appname_, const char *logfname_, u_long groups_, u_long maxsize_, Reactor *reactor_) |
| Open connection with Log Server. More...
|
|
Definition at line 32 of file StdOutLogger.h.
◆ StdOutLogger() [1/2]
ASSA::StdOutLogger::StdOutLogger |
( |
| ) |
|
|
inline |
◆ StdOutLogger() [2/2]
◆ log_close()
int ASSA::StdOutLogger::log_close |
( |
void |
| ) |
|
|
inlinevirtual |
◆ log_func()
int StdOutLogger::log_func |
( |
Group |
g_, |
|
|
size_t |
indent_level_, |
|
|
const string & |
func_name_, |
|
|
marker_t |
type_ |
|
) |
| |
|
virtual |
◆ log_msg()
int StdOutLogger::log_msg |
( |
Group |
g_, |
|
|
size_t |
indent_level_, |
|
|
const string & |
func_name_, |
|
|
size_t |
expected_sz_, |
|
|
const char * |
fmt_, |
|
|
va_list |
msg_list_ |
|
) |
| |
|
virtual |
Implements ASSA::Logger_Impl.
Definition at line 27 of file StdOutLogger.cpp.
36 char* msgbuf_ptr = NULL;
45 msgbuf_ptr =
format_msg (expected_sz_, fmt_, msg_list_, release);
47 if (msgbuf_ptr == NULL) {
50 std::cout << msgbuf_ptr;
char * format_msg(size_t expected_sz_, const char *fmt_, va_list vap_, bool &release_)
Format and put the message in the buffer.
References ASSA::Logger_Impl::add_timestamp(), ASSA::Logger_Impl::format_msg(), ASSA::FUNC_MSG, ASSA::Logger_Impl::group_enabled(), and ASSA::Logger_Impl::indent_func_name().
◆ log_open()
int ASSA::StdOutLogger::log_open |
( |
u_long |
groups_ | ) |
|
|
inlinevirtual |
◆ log_resync()
void ASSA::StdOutLogger::log_resync |
( |
void |
| ) |
|
|
inlinevirtual |
◆ operator=()
The documentation for this class was generated from the following files: