Newer
Older
#ifndef _include_Sink_h_
#define _include_Sink_h_
namespace corsika::logging {
/**
a sink for the logger must implement the two functions
Definition of Sink for log output.
*/
template <typename TStream>
Sink(TStream& out)
: fOutput(out) {}
void operator<<(const std::string& msg) { fOutput << msg; }
void Close() {}
typedef Sink<std::ostream> SinkStream;
} // namespace sink
} // namespace corsika::logging