This page was last modified 21:03, 8 December 2007.
Create log files with RFileLogger
From Forum Nokia Wiki
RFileLogger is a class which is not officially supported, but is widely used for logging as it is versatile and useful. It provides both instanced and static methods: instanced (i.e. non-static) methods are faster since you have to set up a client-server session to the Logger server only once, but static methods are also useful, since you don't need to maintain and share a singleton logger class. RFileLogger takes a wide variety of descriptors and other data fairly easily, including variable argument lists.
Logs are always created in C:\Logs\[chosen directory]\ on the device - as of S60 3rd Edition platform, this is the actual root of C: drive, not C:\Data which was the root used by the file manager, so you will need a tool like Y-Browser to access them and create the directories initially. Log files will not be created if the directories do not exist, which is useful to switch logging on or off.
Please note that the output produced by RFileLogger is not always reliable. For example, if the client program panics, then sometimes the log file doesn't contain each line to be logged up to the point the fatal error has occured.
Links
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Log / Telephone Application Corrupt Log File | simulacara | General Symbian C++ | 0 | 2002-12-16 23:44 |
| Log engine does not show full msg body.watto do??? | nabaparna | General Symbian C++ | 0 | 2007-04-20 05:54 |
| AMR file playback issues on 6600 | bvolk | Mobile Java Media (Graphics & Sounds) | 1 | 2005-07-11 18:52 |
| question about mmp to VC6 | YMMM | General Symbian C++ | 5 | 2003-11-07 09:10 |
| Python in subdir not working | stadin | Mobile Web Server | 8 | 2007-06-13 06:04 |
