ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions | Static Public Member Functions
prt::FileLogHandler Class Referenceabstract

#include <LogHandler.h>

Inheritance diagram for prt::FileLogHandler:
[legend]

Public Member Functions

virtual const wchar_t * getPath () const =0
 
- Public Member Functions inherited from prt::LogHandler
virtual void getFormat (bool *dateTime, bool *level)=0
 
virtual const LogLevelgetLevels (size_t *count)=0
 
virtual void handleLogEvent (const wchar_t *msg, LogLevel level)=0
 
- Public Member Functions inherited from prt::Object
void destroy () const
 
virtual char * toXML (char *result, size_t *resultSize, Status *stat=0) const =0
 
char * toXMLDocument (char *result, size_t *resultSize, Status *stat=0) const
 

Static Public Member Functions

static FileLogHandlercreate (const LogLevel *levels, size_t count, const wchar_t *path)
 

Additional Inherited Members

- Static Public Attributes inherited from prt::LogHandler
static const prt::LogLevel ALL [ALL_COUNT]
 
static const size_t ALL_COUNT = 6
 
- Protected Member Functions inherited from prt::Object
 Object (const Object &)
 

Detailed Description

Convenience file logger, will print to specified file.

See also
prtx::LogFormatter

Member Function Documentation

◆ create()

static FileLogHandler* prt::FileLogHandler::create ( const LogLevel levels,
size_t  count,
const wchar_t *  path 
)
static

Creates a FileLogHandler instance, must be deleted by the client.

Parameters
levelsAn array with log levels on which this handler should listen.
countThe number of log levelsin the levels array.
pathThe path accepts date/time format commands, see http://www.boost.org/doc/libs/1_59_0/doc/html/date_time/date_time_io.html. path must exist.
Returns
New instance of ConsoleLogHandler.

The documentation for this class was generated from the following file: