Matrix Science header
Public Member Functions

ms_file_logger Class Reference
[Shared classes for handling errors and warnings in Mascot Parser modules]

Concrete class which implements ms_logger and outputs log text to the specified file. More...

#include <ms_logging.hpp>

Inheritance diagram for ms_file_logger:
Inheritance graph
[legend]
Collaboration diagram for ms_file_logger:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ms_file_logger ()
 Constructor.
 ms_file_logger (const std::string logFileName)
 Constructor, sets the logfilename.
virtual ~ms_file_logger ()
 Destructor.
std::string getLogFilename ()
virtual void onLogMessage (ms_loggingmonitor::Level_e eSeverity, ms_loggingmonitor::Source_e eSource, long lMsgId, const std::string &text, long lContextId=0)
 Logs the passed message to the logfile.
void setLogFilename (std::string logFileName)
 Sets the path to the target log file.

Detailed Description

Concrete class which implements ms_logger and outputs log text to the specified file.


Constructor & Destructor Documentation

ms_file_logger ( const std::string  logFileName )

Constructor, sets the logfilename.

ms_logger implementation which logs to a specified file. The file is appended to and is never overwritten.

Parameters:
logFileNamethe full path to the log file to use

Member Function Documentation

std::string getLogFilename (  )
Returns:
the specified path to the current log file
void onLogMessage ( ms_loggingmonitor::Level_e  eSeverity,
ms_loggingmonitor::Source_e  eSource,
long  lMsgId,
const std::string &  text,
long  lContextId = 0 
) [virtual]

Logs the passed message to the logfile.

Parameters:
eSeveritythe severity level of the message
eSourcethe source of the message
lMsgIdthe message id or error code
textthe message text
lContextIdthe contextid of the message

Implements ms_logger.

void setLogFilename ( std::string  logFileName )

Sets the path to the target log file.

Parameters:
logFileNamethe full path to the log file to use

The documentation for this class was generated from the following files:
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:52