Main Page | Class Hierarchy | Class List | File List | Class Members

Log Class Reference

#include <Log.h>

List of all members.

Public Member Functions

 Log (const wstring &programName)

Static Public Member Functions

void registerPattern (const wstring &pattern)
void unregisterPattern (const wstring &pattern)
void clearPatterns ()
const vector< wstring > & patterns ()
LogLevel level ()
void setLevel (LogLevel level)
LogLevel threshold ()
void setThreshold (LogLevel threshold)
void setPreambleFlags (const GlobalLog::PreambleFlags flags)
bool isEnabled (const LogLevel level)
bool isEnabled (const wstring &category)
const wstring levelName (const LogLevel level)
const wstring levelColor (const LogLevel level)
void write (const wstring &category, const LogLevel level, wostringstream &wos)
void setIndentationState (const bool indentation)
void setIndentationAmount (const size_t spaces)
void registerIndentationLevelPlaceholder (int &indentationLevel)
void unregisterIndentationLevelPlaceholder ()
bool outputToTTY ()


Detailed Description

This is the frontend to the logging system. It's pretty much a 1-to-1 mapping of the methods in the GlobalLog object, and uses internally a global instance of a GlobalLog object. It should be used for all logging needs (i.e. don't use GlobalLog).


The documentation for this class was generated from the following files:
Generated on Wed May 25 12:21:19 2005 for csp.kdevelop by  doxygen 1.3.9.1