43 sink_ <<
tv.fmtString (
"%m/%d/%Y %H:%M:%S") <<
'.';
45 sink_ << std::setw (3) << (
tv.msec () % 1000000)/1000 <<
' ';
105 std::cout <<
"Logger_Impl: format_mg(expected_sz=" <<
expected_sz_
106 <<
")=-1 failed! errno=" <<
errno <<
" ("
Class TimeVal is a wrapper around UNIX timeval structure.
A wrapper class to provide AutoPtr with reference semantics.
char * format_msg(size_t expected_sz_, const char *fmt_, va_list vap_, bool &release_)
Format and put the message in the buffer.
virtual u_short indent_func_name(ostream &sink_, const string &funcname_, size_t indent_level_, marker_t type_)
u_short m_indent_step
Indentation step.
int m_tz
Timezone: 0-GMT, 1-Local.
bool timestamp_enabled(void) const
static char m_msgbuf[LOGGER_MAXLINE]
Static buffer for formatted message.
static const unsigned int LOGGER_MAXLINE
Maximum length of the formatted message.
virtual u_short add_timestamp(ostream &sink_)
static TimeVal gettimeofday()
Shields off underlying OS differences in getting current time.