mermaid::support::logging::FileOutput Class Reference

Appends LogMessage's to a file. More...

#include <Logger.hpp>

Inheritance diagram for mermaid::support::logging::FileOutput:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::logging::FileOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void outputMessage (const LogMessage &logMessage)
 Logs a message generated by the logger.

Static Public Member Functions

static shared_ptr< FileOutputbuild (std::string fileName)
 Creates a new FileOutput for the given file. Beware that only one file output should exist for each file. You are responsible to sychronize that output with a ThreadSafeOutput if you need.

Detailed Description

Appends LogMessage's to a file.

Author:
Joao Reis

Definition at line 717 of file Logger.hpp.


Member Function Documentation

shared_ptr< FileOutput > FileOutput::build ( std::string  fileName  )  [static]

Creates a new FileOutput for the given file. Beware that only one file output should exist for each file. You are responsible to sychronize that output with a ThreadSafeOutput if you need.

Returns:
A shared_ptr to the new FileOutput.
Parameters:
fileName The name of the file to append to.
Author:
Joao Reis

Definition at line 43 of file FileOutput.cpp.

void FileOutput::outputMessage ( const LogMessage logMessage  )  [virtual]

Logs a message generated by the logger.

Parameters:
logMessage the message to log.
Author:
Joao Reis

Implements mermaid::support::logging::LogOutput.

Definition at line 48 of file FileOutput.cpp.

Generated on Fri Mar 4 22:15:48 2011 for MeRMaID::support by  doxygen 1.6.3