iDRS™ SDK 16
Loading...
Searching...
No Matches
CFileLogger Class Reference

#include <idrs_common.h>

Inheritance diagram for CFileLogger:
CObjPtr CObj ILogger CObj

Detailed Description

The CFileLogger class is an iDRS implementation of the ILogger interface. It exposes a default iDRS Logger that can be used to log messages during an operation.

This class will write log messages to a file on disk. Note that each instance of CFileLogger must use a unique file. Having several loggers using the same file results in undefined behavior.

Log entries are expressed by this class as per the following pattern: YYYY-MM-DD hh:mm:ss [severity level] [message]

  • First part is a timestamp of a current date time
  • Second part is the severity level of the message
  • Third part is the message itself.