head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.37; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.51; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.53.59; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.55; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# logbuf Class Reference

logbuf is an output-only streambuf with the ability to disable sets of messages at runtime. More...

`#include <logstream.hxx>`

List of all members.

## Public Types
typedef char_traits< char > | traits_type
typedef char_traits< char >::int_type | int_type
## Public Methods
| logbuf ()
| Constructor.
| ~logbuf ()
| Destructor.
bool | enabled ()
| Is logging enabled?
void | set_log_state (sgDebugClass c, sgDebugPriority p)
| Set the logging level of subsequent messages.
void | set_sb (streambuf *sb)
| Set the stream buffer.
## Static Public Methods
void | set_log_level (sgDebugClass c, sgDebugPriority p)
| Set the global logging level.
void | set_log_classes (sgDebugClass c)
| Set the allowed logging classes.
sgDebugClass | get_log_classes ()
| Get the logging classes currently enabled.
void | set_log_priority (sgDebugPriority p)
| Set the logging priority.
sgDebugPriority | get_log_priority ()
| Get the current logging priority.
## Protected Methods
virtual int | sync ()
| sync/flush
int_type | overflow (int ch)
| overflow

## Detailed Description

logbuf is an output-only streambuf with the ability to disable sets of messages at runtime.

Only messages with priority >= logbuf::logPriority and debugClass == logbuf::logClass are output.

Definition at line 72 of file logstream.hxx.

## Member Function Documentation

bool logbuf::enabled | ( |  | ) | `[inline]`

| Is logging enabled? Returns: true or false Definition at line 92 of file logstream.hxx.

sgDebugClass logbuf::get_log_classes | ( |  | ) | `[static]`

| Get the logging classes currently enabled. Returns: All enabled debug logging anded together. Definition at line 68 of file logstream.cxx.

sgDebugPriority logbuf::get_log_priority | ( |  | ) | `[static]`

| Get the current logging priority. Returns: The priority cutoff for logging messages. Definition at line 80 of file logstream.cxx.

void logbuf::set_log_classes | ( | sgDebugClass | c | ) | `[static]`

  | Set the allowed logging classes. Parameters:
  c | All enabled logging classes anded together.
Definition at line 62 of file logstream.cxx. References sgDebugClass.

void logbuf::set_log_level | ( | sgDebugClass | c,
|  | sgDebugPriority | p
| ) | `[static]`

  | Set the global logging level. Parameters:
  c | debug class
  p | priority
Definition at line 55 of file logstream.cxx. References sgDebugClass, and sgDebugPriority. Referenced by logstream::setLogLevels().

void logbuf::set_log_priority | ( | sgDebugPriority | p | ) | `[static]`

  | Set the logging priority. Parameters:
  c | The priority cutoff for logging messages.
Definition at line 74 of file logstream.cxx. References sgDebugPriority.

void logbuf::set_log_state | ( | sgDebugClass | c,
|  | sgDebugPriority | p
| ) | `[inline]`

  | Set the logging level of subsequent messages. Parameters:
  c | debug class
  p | priority
Definition at line 179 of file logstream.hxx. References sgDebugClass, and sgDebugPriority. Referenced by logstream::operator<<().

void logbuf::set_sb | ( | streambuf * | sb | ) |

  | Set the stream buffer. Parameters:
  sb | stream buffer
Definition at line 46 of file logstream.cxx. References sync(). Referenced by logstream::logstream(), and logstream::set_output().

The documentation for this class was generated from the following files:

- logstream.hxx
- logstream.cxx

@ 1.3 log @Oops, try again. @ text @d398 1 a398 1