#include <mw/cwrt/sfwservicelogger.h>
class SfwServiceLogger |
A logging utility class for service providers.
Public Member Functions | |
---|---|
SfwServiceLogger() | |
SfwServiceLogger(const char *) | |
~SfwServiceLogger() | |
int | lastLogError() |
void | log(const char *, ...) |
bool | logValid() |
bool | setLogFile(const char *) |
This utlity class is intended to be intantiated by service providers to output messages to debug console(all platform) and to a log file(Symbian only) in the file system. The folder containing the log file has been hard-coded to "sfw" and it's realtive to c:\ (i.e. the log file will be saved in c:). The user can set the name of the log file when instantiating this utility class, however, if no name is specified(i.e. if default constructor is used), messages will only be printed to debug console. Logging messages to a file is only supported in Symbian platform, but messages will be printed to debug console in all platforms.
SfwServiceLogger | ( | const char * | aFileName | ) | [inline] |
Constructs a utility object, connects to RFileLogger, and creates a log file. This constructor is intended to be used in Symiban only.
Parameters | |
---|---|
aFileName | name of the log file |
int | lastLogError | ( | ) | [inline] |
Returns the last error status that has been set. Symbian only.
void | log | ( | const char * | text, |
... | ||||
) | [inline] |
Outputs messages to debug console for all platforms. Writes messages to a log file(Symbian only).
Parameters | |
---|---|
text | the format string to be printed |