toast/log/output_policies.hpp File Reference


Detailed Description

This file describes the toast::log::OutputPolicyConcept and contains some possible implementations.

Currently the library provides five OutputPolicies: toast::log::to_stdout, toast::log::to_stderr, toast::log::to_stderr_buffered, toast::log::to_stream, and toast::log::to_file.

#include <iostream>
#include <fstream>
#include <toast/concept_check.hpp>
#include <cstdio>
#include <toast/log/header_policies.hpp>
#include <toast/log/footer_policies.hpp>
#include <toast/log/stream_policies.hpp>
#include <toast/log/rotation_policies.hpp>

Go to the source code of this file.

Namespaces

namespace  toast
namespace  toast::log

Classes

class  toast::log::ConsumingOutputPolicy
 OutputPolicy's should subclass this to indicate that they support message consumption. More...
struct  toast::log::OutputPolicyConcept< Policy >
 The OutputPolicyConcept describes the interface of a OutputPolicy. Currently the library provides five OutputPolicies: toast::log::to_stdout, toast::log::to_stderr, toast::log::to_stderr_buffered, toast::log::to_stream, and toast::log::to_file. More...
struct  toast::log::to_stream< HeaderPolicy, FooterPolicy, StreamPolicy >
 This OutputPolicy directs the loggers output to a user provided stream. More...
struct  toast::log::to_stream< HeaderPolicy, no_footer, StreamPolicy >
struct  toast::log::to_stream< no_header, FooterPolicy, StreamPolicy >
struct  toast::log::to_stream< no_header, no_footer, StreamPolicy >
struct  toast::log::to_stderr_buffered< HeaderPolicy, FooterPolicy >
 This OutputPolicy buffers the loggers output and directs it to stderr. More...
struct  toast::log::to_file< HeaderPolicy, FooterPolicy, RotationPolicy >
 This OutputPolicy directs the loggers output to a file based on a user provided file name. More...
struct  toast::log::to_stdout< HeaderPolicy, FooterPolicy >
 This OutputPolicy directs the loggers output to stdout. More...
struct  toast::log::to_stderr< HeaderPolicy, FooterPolicy >
 This OutputPolicy directs the loggers output to stderr. More...
struct  toast::log::output_policy_aggregator< FirstOutputPolicy, SecondOutputPolicy >

Typedefs

typedef
header_policy_aggregator
< microseconds,
severity_header > 
toast::log::default_header_policy
typedef rotation_policy
< max_file_size, roll_rotation > 
toast::log::default_rotation_policy


SourceForge.net Logo