A logging utility class for service providers.
|Public Member Functions|
|SfwServiceLogger(const char *)|
|void||log(const char *, ...)|
|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.
|aFileName||name of the log file|
Returns the last error status that has been set. Symbian only.
|void||log||(||const char *||text,|
Outputs messages to debug console for all platforms. Writes messages to a log file(Symbian only).
|text||the format string to be printed|
Returns the status of the log. Symbian only.