pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::logging::fixture Struct Reference

a "fixture" that opens the logging when it is created and closes the logging when it is destroyed. More...

#include <Logging.h>

Public Member Functions

 fixture ()
 constructor to open logging and provide an initial configuration
 
 ~fixture ()
 destructor to close logging
 

Detailed Description

a "fixture" that opens the logging when it is created and closes the logging when it is destroyed.

This is helpful for writing new programs where we want to open the logging at the beginning and then have the logging closed automatically when execution is completed.

int main(int argc, char** argv) {
// logging enabled and will be closed when f
// goes out of scope and is destructed
}
a "fixture" that opens the logging when it is created and closes the logging when it is destroyed.
Definition Logging.h:97

Constructor & Destructor Documentation

◆ fixture()

pflib::logging::fixture::fixture ( )

constructor to open logging and provide an initial configuration

The default color is true if we are connected to a terminal (isatty). The default logging level is info.


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