Honeycomb
0.1
Component-Model Framework
|
Formats record to a file stream. More...
#include <Log.h>
Public Types | |
typedef SharedPtr< FileSink > | Ptr |
Public Types inherited from honey::log::StreamSink | |
typedef SharedPtr< StreamSink > | Ptr |
Public Types inherited from honey::log::Sink | |
typedef SharedPtr< Sink > | Ptr |
Public Member Functions | |
FileSink (String filepath) | |
~FileSink () | |
virtual void | operator() (const Level &level, const String &record) |
Public Member Functions inherited from honey::log::StreamSink | |
StreamSink (ostream &os) | |
Public Member Functions inherited from honey::SharedObj< Sink > | |
SharedObj (Alloc &&a=Alloc()) debug_if( | |
Construct with allocator that is called to deallocate this shared object when all references have been released. More... | |
Public Attributes | |
String | filepath |
std::ofstream | os |
Public Attributes inherited from honey::log::StreamSink | |
ostream & | os |
Additional Inherited Members | |
Protected Member Functions inherited from honey::SharedObj< Sink > | |
void | finalize () |
Destroys object. Called when strong reference count reaches 0. May be overridden to prevent destruction. More... | |
Formats record to a file stream.
typedef SharedPtr<FileSink> honey::log::FileSink::Ptr |
honey::log::FileSink::FileSink | ( | String | filepath | ) |
honey::log::FileSink::~FileSink | ( | ) |
Reimplemented from honey::log::StreamSink.
String honey::log::FileSink::filepath |
std::ofstream honey::log::FileSink::os |