Persistentdata for beginners: RFile Logger

The RFile Logger component is a server for file logging used by the Test Execute Framework (TEF).

It is included in the sf codeline for dependency reasons – although it is logically part of TEF. The same RFile Logger code also exists in the Test Frameworks package (sftools/ana/testfw/testexecmdw/filelogger).

The API is provided by the RFileFlogger class, which is defined in test/rfilelogger.h. Macros are provided in test/rfileloggermacro.h to make it easier to introduce file logging for debug builds only. Both headers are platform headers.

Log messages can be written in a text or XML format. The logging output will contain a time stamp, thread id, severity, file name and the message. The file used for logging is specified by the call to RFileFlogger::CreateLog or the macro __FLOG_CREATE.

Coming up next…

Next in the Persistentdata for beginners series will be Feature Manager. It allows applications to determine at run-time whether hardware and software features are available to use.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: