Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | Public Attributes | List of all members
honey::log::FileSink Struct Reference

Formats record to a file stream. More...

#include <Log.h>

Inheritance diagram for honey::log::FileSink:
Inheritance graph
[legend]
Collaboration diagram for honey::log::FileSink:
Collaboration graph
[legend]

Public Types

typedef SharedPtr< FileSinkPtr
 
- Public Types inherited from honey::log::StreamSink
typedef SharedPtr< StreamSinkPtr
 
- Public Types inherited from honey::log::Sink
typedef SharedPtr< SinkPtr
 

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...
 

Detailed Description

Formats record to a file stream.

Member Typedef Documentation

Constructor & Destructor Documentation

honey::log::FileSink::FileSink ( String  filepath)
honey::log::FileSink::~FileSink ( )

Member Function Documentation

void honey::log::FileSink::operator() ( const Level level,
const String record 
)
virtual

Reimplemented from honey::log::StreamSink.

Member Data Documentation

String honey::log::FileSink::filepath
std::ofstream honey::log::FileSink::os

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