boost::logging::formatter::time_strf_t< convert > Struct Template Reference

Prefixes the message with the time, by using strftime function. You pass the format string at construction. More...

Inheritance diagram for boost::logging::formatter::time_strf_t< convert >:
[legend]
Collaboration diagram for boost::logging::formatter::time_strf_t< convert >:
[legend]

List of all members.

Public Member Functions

 time_strf_t (const hold_string_type &format, bool localtime)


Detailed Description

template<class convert = do_convert_format::prepend>
struct boost::logging::formatter::time_strf_t< convert >

Prefixes the message with the time, by using strftime function. You pass the format string at construction.

Parameters:
msg_type The type that holds your logged message.
convert [optional] In case there needs to be a conversion between std::(w)string and the string that holds your logged message. See convert_format. For instance, you might use a cached_string class (see optimize namespace).

Constructor & Destructor Documentation

template<class convert = do_convert_format::prepend>
boost::logging::formatter::time_strf_t< convert >::time_strf_t ( const hold_string_type &  format,
bool  localtime 
) [inline]

constructs a time_strf object

Parameters:
format the time format , strftime-like
localtime if true, use localtime, otherwise global time


The documentation for this struct was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback