paludis::Log Class Reference
[Logging]

#include <log.hh>

Inheritance diagram for paludis::Log:

paludis::PrivateImplementationPattern< C_ >

List of all members.

Public Member Functions

 ~Log ()
void set_log_level (const LogLevel)
LogLevel log_level () const PALUDIS_ATTRIBUTE((warn_unused_result))
LogMessageHandler message (const std::string &id, const LogLevel, const LogContext) PALUDIS_ATTRIBUTE((warn_unused_result))
void set_log_stream (std::ostream *const)
void set_program_name (const std::string &)
void complete_pending () const

Friends

class InstantiationPolicy< Log, instantiation_method::SingletonTag >
class LogMessageHandler


Detailed Description

Singleton class that handles log messages.

Constructor & Destructor Documentation

paludis::Log::~Log (  ) 

Destructor, to be called only by our InstantiationPolicy.


Member Function Documentation

void paludis::Log::set_log_level ( const   LogLevel  ) 

Only display messages of at least this level.

LogLevel paludis::Log::log_level (  )  const

Fetch the current log level.

LogMessageHandler paludis::Log::message ( const std::string &  id,
const   LogLevel,
const   LogContext 
)

Log a message.

The return value can be appended to using LogMessageHandler::operator<<(). When the return value is destroyed (that is to say, at the end of the statement), the log message is written.

void paludis::Log::set_log_stream ( std::ostream *  const  ) 

Change the log stream.

void paludis::Log::set_program_name ( const std::string &   ) 

Set our program name.

void paludis::Log::complete_pending (  )  const

Finish any pending writes.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4