RFileLogger Class Reference

#include <comms-infras/commsdebugutility.h>

Link against: comsdbgutil.lib

class RFileLogger
Public Member Functions
RFileLogger()
~RFileLogger()
IMPORT_C TIntClearLog()
IMPORT_C voidClose()
IMPORT_C voidCloseLog()
IMPORT_C TIntConnect()
IMPORT_C voidCreateLog(const TDesC &, const TDesC &, TFileLoggingMode)
IMPORT_C TIntHandle()
IMPORT_C voidHexDump(const TDesC &, const TDesC &, TFileLoggingMode, const TText *, const TText *, const TUint8 *, TInt)
IMPORT_C voidHexDump(const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidHexDump(const TText *, const TText *, const TUint8 *, TInt)
IMPORT_C voidHexDump(const TDesC8 &, const TDesC8 &)
IMPORT_C TIntLastError()
IMPORT_C TBoolLogValid()
IMPORT_C voidSetDateAndTime(TBool, TBool)
IMPORT_C TIntSetLogTags(const TDesC8 &, const TDesC8 &)
IMPORT_C TIntShare()
IMPORT_C TVersionVersion()
IMPORT_C voidWrite(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC16 &)
IMPORT_C voidWrite(const TDesC &, const TDesC &, TFileLoggingMode, const TDesC8 &)
IMPORT_C voidWrite(const TDesC8 &, const TDesC8 &, const TDesC16 &)
IMPORT_C voidWrite(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidWrite(const TDesC16 &)
IMPORT_C voidWrite(const TDesC8 &)
IMPORT_C voidWriteBinary(const TDesC8 &)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, ...)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST &)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, ...)
IMPORT_C voidWriteFormat(const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST &)
IMPORT_C voidWriteFormat(const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC16 >, ...)
IMPORT_C voidWriteFormat(const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC16 >, VA_LIST &)
IMPORT_C voidWriteFormat(const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC8 >, ...)
IMPORT_C voidWriteFormat(const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC8 >, VA_LIST &)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >, ...)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >, VA_LIST &)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >, ...)
IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >, VA_LIST &)
IMPORT_C void__DbgSetHeapFailure(TInt)
IMPORT_C void__DbgShutDownServer()

Detailed Description

Flogger - File and Serial Logger client interface

DeprecatedMigrate to Open System Trace Instrumentation API instead

This class is responsible for providing all functions clients require of the flogger system. It is preferred, though, that clients use the provided macros which refer to these API's so that all logging code is governed by the global __FLOG_ACTIVE macro setting. The macro's are not currently documented using doxygen - you will need to consult the flogger user guide instead. RFileLogger is the only exported interface for the flogger component.

Constructor & Destructor Documentation

RFileLogger ( )

IMPORT_CRFileLogger()

Create a new flogger client interface object with an empty body.

~RFileLogger ( )

IMPORT_C~RFileLogger()

Destructor

Member Function Documentation

ClearLog ( )

IMPORT_C TIntClearLog()
Request that the server empty the log file.
Pre-condition
The client requesting the log be cleared must be listed in the flogger "ini" file as an enabled logging client. This prevents unwanted clients clearing the log. The session with the server must be active, otherwise this will fail silently.
Post-condition
A message is added to the server write queue that indicates to clear the log. Once the message reaches the head of the queue flogger will empty the log file and begin filling it again.
Return Value
TInt indicating success code (KErrNone) or an error code.

Close ( )

IMPORT_C voidClose()
Close a client side session with the flogger server.
Post-condition
The client session is closed and the body of the class is deleted. Further calls to the Write functions will fail silently until a new session is opened.

CloseLog ( )

IMPORT_C voidCloseLog()

Close a client side session with the flogger server. DeprecatedWith the advent of a single log file for all clients, closing the log file is no longer necessary. Use Close to close the session.

See also: Close

Connect ( )

IMPORT_C TIntConnect()

Connect to the flogger server - default number of message slots = 1

Return Value
TInt indicating success code (KErrNone), KErrNoMemory if failed to allocate log body or an error from RSessionBase::CreateSession. KErrAlreadyExists if Connect has already been called.

CreateLog ( const TDesC &, const TDesC &, TFileLoggingMode )

IMPORT_C voidCreateLog(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode
)
Sets the log tags. Not fully supported since flogger only uses one log file. Use SetLogTags instead.
Note:

This function is partially supported and is equivalent to calling SetLogTags.

See also: SetLogTags

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file

Handle ( )

IMPORT_C TIntHandle()const

HexDump ( const TDesC &, const TDesC &, TFileLoggingMode, const TText *, const TText *, const TUint8 *, TInt )

IMPORT_C voidHexDump(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode,
const TText *aHeader,
const TText *aMargin,
const TUint8 *aPtr,
TIntaLen
)[static]
Static Write. Dump arbitrary data to the log file as a standard hex dump. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
Each line is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server. Example of aHeader/aMargin. If "aHeader" is set to "Fn Output:" and "aMargin" is set to " ", then output would look like (for a print of the alphabet): TLOG Example 20 FnOutput:0000 : 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop TLOG Example 20 0010 : 71 72 73 74 75 76 77 78 79 7a qrstuvwxyz

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aHeaderSpecify a zero-terminated string to be printed before the first hex line. Leave as null or an empty string for no header.
aMarginSpecify a zero-terminated string to be printed before each subsequent line. Leave as null or an empty string for no Margin.
aPtrpointer to the data being dumped.
aLenthe number of bytes to dump

HexDump ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 & )

IMPORT_C voidHexDump(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TDesC8 &aData,
const TDesC8 &aHeader =  TPtrC8(NULL, 0)
)[static]
Static Write. Dump arbitrary data to the log file as a standard hex dump.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
Each line is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server. Example of aHeader/aMargin. If "aHeader" is set to "Fn Output:" and "aMargin" is set to " ", then output would look like (for a print of the alphabet): TLOG Example 20 FnOutput:0000 : 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop TLOG Example 20 0010 : 71 72 73 74 75 76 77 78 79 7a qrstuvwxyz

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aDatathe data being dumped.
aHeaderSpecify a string to be printed before the first hex line. If not supplied, no header or Margin is written.

HexDump ( const TText *, const TText *, const TUint8 *, TInt )

IMPORT_C voidHexDump(const TText *aHeader,
const TText *aMargin,
const TUint8 *aPtr,
TIntaLen
)
Dump arbitrary data to the log file as a standard hex dump.
Pre-condition
The session with the server must be active, otherwise this no action is taken. The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
Each line is preceded in the log file by the two client tags and the client thread ID.
Note:

Example of aHeader/aMargin. If "aHeader" is set to "Fn Output:" and "aMargin" is set to " ", then output would look like (for a print of the alphabet): TLOG Example 20 FnOutput:0000 : 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop TLOG Example 20 0010 : 71 72 73 74 75 76 77 78 79 7a qrstuvwxyz

Parameters
aHeaderSpecify a zero-terminated string to be printed before the first hex line. Leave as null or an empty string for no header.
aMarginSpecify a zero-terminated string to be printed before each subsequent line. Leave as null or an empty string for no Margin.
aPtrpointer to the data being dumped.
aLenthe number of bytes to dump

HexDump ( const TDesC8 &, const TDesC8 & )

IMPORT_C voidHexDump(const TDesC8 &aData,
const TDesC8 &aHeader =  TPtrC8(NULL, 0)
)
Dump arbitrary data to the log file as a standard hex dump.
Pre-condition
The session with the server must be active, otherwise this no action is taken. The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
Each line is preceded in the log file by the two client tags and the client thread ID.
Note:

Example of aHeader. If "aHeader" is set to "Fn Output:" then output would look like (for a print of the alphabet): TLOG Example 20 FnOutput:0000 : 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop TLOG Example 20 0010 : 71 72 73 74 75 76 77 78 79 7a qrstuvwxyz

Parameters
aDatathe data being dumped.
aHeaderSpecify a string to be printed before the first hex line. If not supplied, no header or margin is written. If supplied, then subsequent lines are indented to the length of aHeader.

LastError ( )

IMPORT_C TIntLastError()const

Always returns KErrNone Flogger no longer retains internal errors.

Return Value
KErrNone always.

LogValid ( )

IMPORT_C TBoolLogValid()const

Always returns ETrue. With the advent of a single log file for all clients, checking for log validity is no longer necessary.

Return Value
ETrue always.

SetDateAndTime ( TBool, TBool )

IMPORT_C voidSetDateAndTime(TBoolaUseDate,
TBoolaUseTime
)

Does nothing. This function no longer needed since now logging to one file and date/time comes from system.

SetLogTags ( const TDesC8 &, const TDesC8 & )

IMPORT_C TIntSetLogTags(const TDesC8 &aSubsystem,
const TDesC8 &aComponent
)
Set the two tag strings that all further writes by this client will use to idenitfy it in the log file.
Post-condition
The client session is updated so that all future calls use this tag set. Tags are truncated to KMaxTagLength.
Note:

If an error occurs, the client connection will be silently closed to protect the client.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
Return Value
TInt indicating success code (KErrNone) or an error code.

Share ( )

IMPORT_C TIntShare()

Version ( )

IMPORT_C TVersionVersion()const

Return the client side version number

Return Value
TVersion 3-part version number: major, minor, build.

Write ( const TDesC &, const TDesC &, TFileLoggingMode, const TDesC16 & )

IMPORT_C voidWrite(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode,
const TDesC16 &aText
)[static]
Static write. Write 16-bit aText to the log file if it is a valid file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aTextText to write

Write ( const TDesC &, const TDesC &, TFileLoggingMode, const TDesC8 & )

IMPORT_C voidWrite(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode,
const TDesC8 &aText
)[static]
Static write. Write 8-bit aText to the log file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aTextText to log.

Write ( const TDesC8 &, const TDesC8 &, const TDesC16 & )

IMPORT_C voidWrite(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TDesC16 &aText
)[static]
Static write. Write 16-bit aText to the log file if it is a valid file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aTextText to write

Write ( const TDesC8 &, const TDesC8 &, const TDesC8 & )

IMPORT_C voidWrite(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TDesC8 &aText
)[static]
Static write. Write 8-bit aText to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aTextText to log.

Write ( const TDesC16 & )

IMPORT_C voidWrite(const TDesC16 &aText)
Write 16-bit aText to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The 16-bit text is converted to 8-bit text before writing, and is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Note:

There is no need to supply CR, LF. If these are supplied it may cause the log output to be incorrect.

Parameters
aTextText to write

Write ( const TDesC8 & )

IMPORT_C voidWrite(const TDesC8 &aText)
Write 8-bit aText to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Parameters
aTextText to log.

WriteBinary ( const TDesC8 & )

IMPORT_C voidWriteBinary(const TDesC8 &aData)
Dump arbitrary data to the log file in a binary format.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The 8-bit binary dump is preceded in the log file by the two client tags
Note:

Unlike all other write API's, no thread ID is written with this API.

Parameters
aDataDescriptor of the data to be dumped

WriteFormat ( const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, ... )

IMPORT_C voidWriteFormat(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingModeaMode,
TRefByValue< const TDesC16 >aFmt,
...
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aModenot used
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC16 >, VA_LIST & )

IMPORT_C voidWriteFormat(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode,
TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor
aListany variables required by the format.

WriteFormat ( const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, ... )

IMPORT_C voidWriteFormat(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingModeaMode,
TRefByValue< const TDesC8 >aFmt,
...
)[static]
Static write. Write the formatted 8-bit string aFmt to the log file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aModenot used
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( const TDesC &, const TDesC &, TFileLoggingMode, TRefByValue< const TDesC8 >, VA_LIST & )

IMPORT_C voidWriteFormat(const TDesC &aSubsystem,
const TDesC &aComponent,
TFileLoggingMode,
TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file. With the advent of a single log file for all clients, this function has been replaced by an equivalent without the aMode parameter.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor
aListany variables required by the format.

WriteFormat ( const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC16 >, ... )

IMPORT_C voidWriteFormat(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TRefByValue< const TDesC16 >aFmt,
...
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC16 >, VA_LIST & )

IMPORT_C voidWriteFormat(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is converted to 8-bit text before writing, and truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor
aListany variables required by the format.

WriteFormat ( const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC8 >, ... )

IMPORT_C voidWriteFormat(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TRefByValue< const TDesC8 >aFmt,
...
)[static]
Static write. Write the formatted 8-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( const TDesC8 &, const TDesC8 &, const TRefByValue< const TDesC8 >, VA_LIST & )

IMPORT_C voidWriteFormat(const TDesC8 &aSubsystem,
const TDesC8 &aComponent,
const TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)[static]
Static write. Write the formatted 16-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID. "aSubsystem" and "aComponent" are each truncated to KMaxTagLength.
Note:

This function has poor performance since it performs a full connection and disconnection to the flogger server.

Parameters
aSubsystemSpecifies the tag1 name that goes into the log file
aComponentspecifies the tag2 name that goes into the log file
aFmtc-style format descriptor
aListany variables required by the format.

WriteFormat ( TRefByValue< const TDesC16 >, ... )

IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >aFmt,
...
)
Write the formatted 16-bit string aFmt to the log file
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The 16-bit text is converted to 8-bit text before writing, and is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Parameters
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( TRefByValue< const TDesC16 >, VA_LIST & )

IMPORT_C voidWriteFormat(TRefByValue< const TDesC16 >aFmt,
VA_LIST &aList
)
Write the formatted 16-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The 16-bit text is converted to 8-bit text before writing, and is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Parameters
aFmtc-style format descriptor
aListany variables required by the format.

WriteFormat ( TRefByValue< const TDesC8 >, ... )

IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >aFmt,
...
)
Write the formatted 8-bit string aFmt to the log file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Parameters
aFmtc-style format descriptor, followed by any variables required by the format.

WriteFormat ( TRefByValue< const TDesC8 >, VA_LIST & )

IMPORT_C voidWriteFormat(TRefByValue< const TDesC8 >aFmt,
VA_LIST &aList
)
Write the formatted 8-bit string aFmt to the log file if it is a valid file.
Pre-condition
The client requesting to log must be listed in the flogger "ini" file as an enabled logging client, otherwise no logging will occur. The session with the server must be active, otherwise this will fail silently.
Post-condition
The text is truncated to KLogBufferSize if necessary. The text is preceded in the log file by the two client tags and the client thread ID.
Parameters
aFmtc-style format descriptor
aListany variables required by the format.

__DbgSetHeapFailure ( TInt )

IMPORT_C void__DbgSetHeapFailure(TIntaFailAfter)

Debugging Tool. Ask the flogger server to set its heap failure. Only valid in DEBUG builds.

Parameters
aFailAfterThe number of successful memory allocations which will occur before a memory allocation is failed by the memory manager.

__DbgShutDownServer ( )

IMPORT_C void__DbgShutDownServer()

Debugging Tool. Ask the flogger server to shutdown. Only valid in DEBUG builds.