plumbing Namespace Reference

Data Structures

class  at_job
class  at_service
class  endpoint
class  endpoint_client
class  endpoint_client_stdout
class  endpoint_functor
class  endpoint_listener
class  logging
class  logging_file
class  logging_null
class  logging_stderr
class  logging_syslog
class  logging_tee
class  reactor
class  time_value

Functions

logginglog ()

Function Documentation

logging& plumbing::log (  )  [inline]

The plumbing::log() function is used to make it possible to simply say

plumbing::log().fatal_error("croak")

to issue error messages. If you need errno translated, use libexplain to do it, and send it through fatal_error(). For example

fd = open(filename, flags); if (fd < 0) plumbing::log().fatal_error("%s", libexplain_open(filename, flags));

Definition at line 197 of file logging.h.

Generated on Thu Sep 16 14:32:12 2010 for Plumbing by  doxygen 1.6.3