S3FC project page | S3FC home page |
#include <s3_logger.h>
Inheritance diagram for s3_log_buffer:
Public Methods | |
s3_log_buffer (const std::string ident_arg, std::ostream *def_out=0, const bool b_append_info_arg=true) | |
Constructor set the default priority level to LOG_ERR. More... | |
virtual | ~s3_log_buffer () |
Destructor. More... | |
void | set_ident (const std::string &new_ident) |
Change the current ident. More... | |
int | get_priority (void) |
Return the current priority. More... | |
void | set_priority (const int new_priority) |
Set the current priority. More... | |
Private Methods | |
virtual void | write_to_device () |
Necessary overload for s3_generi4c_streambuf::write_to_device(). More... | |
Private Attributes | |
std::string | ident |
The string that is prepended to all messages. More... | |
int | priority |
The current message priority. More... | |
std::string | priority_str |
The string applicable to the current priority setting. More... | |
s3_mutex | write_lock |
Mutex to protect critical write section. More... | |
bool | b_append_info |
Being derived for list<ostream*>, this class is a list of ostream pointers. Messages streamed to here are send to all the ostream objects contained in the list.
Do not use this class direcly, rather use s3_logger.
Definition at line 468 of file s3_logger.h.
|
Constructor set the default priority level to LOG_ERR.
Definition at line 515 of file s3_logger.h. References b_append_info, ident, set_ident, and set_priority. |
|
Destructor.
Definition at line 536 of file s3_logger.h. References s3_generic_streambuf::sync. |
|
Return the current priority.
Definition at line 553 of file s3_logger.h. References priority. Referenced by s3_logger::getpriority. |
|
Change the current ident.
Definition at line 542 of file s3_logger.h. References b_append_info, and ident. Referenced by s3_log_buffer, and s3_logger::setident. |
|
Set the current priority. The following constants are accepted, in order of decreasing importance (an invalid priority value will be ignored):
Definition at line 573 of file s3_logger.h. References b_append_info, priority, and priority_str. Referenced by s3_log_buffer, and s3_logger::setpriority. |
|
Necessary overload for s3_generi4c_streambuf::write_to_device().
Implements s3_generic_streambuf. Definition at line 487 of file s3_logger.h. References ident, s3_mutex::lock, priority_str, and s3_mutex::unlock. |
|
Definition at line 501 of file s3_logger.h. Referenced by s3_log_buffer, set_ident, and set_priority. |
|
The string that is prepended to all messages.
Definition at line 475 of file s3_logger.h. Referenced by s3_log_buffer, set_ident, and write_to_device. |
|
The current message priority.
Definition at line 478 of file s3_logger.h. Referenced by get_priority, and set_priority. |
|
The string applicable to the current priority setting.
Definition at line 481 of file s3_logger.h. Referenced by set_priority, and write_to_device. |
|
Mutex to protect critical write section.
Definition at line 484 of file s3_logger.h. |
Send comments to: s3fc@stonethree.com |
|