RFileLogger in Symbian 9.0

Login to reply to this topic.
Mon, 2007-01-22 16:16
Joined: 2005-01-25
Forum posts: 32
Hi All,

I cannot find RFileLogger in the Symbian 9.0 documentation (I am using S60 3rd ed).

I understand that it is still possible to use it through a workaround ( http://newlc.com/Creating-log-files.html ).

Does anyon know if there is an official replacement available?
I'd be grateful if you could point me to it.

Thanks,
Enrico

Mon, 2007-01-22 19:06
Joined: 2004-07-17
Forum posts: 110
Re: RFileLogger in Symbian 9.0
I don't think there has ever been any official documentation for RFileLogger. It's just one of those really useful classes that you have to discover for yourself. Works fine on Symbian OS 9.

Tue, 2007-01-23 11:25
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: RFileLogger in Symbian 9.0
This class used to be documented in the UIQ 2 SDK but not in Nokia ones despite it is basic Symbian stuff.

It is tagged as "Internal and not inteded to use" since Symbian OS v8.0.

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Fri, 2007-01-26 10:19
Joined: 2005-02-11
Forum posts: 214
Re: RFileLogger in Symbian 9.0
Just check the header file for public methods. It works almost fine in v9.
Only in Nokia N93 the logs are not created at all. Probably some bug in phone

"I only know that I know nothing." (Socrates)

Sat, 2007-01-27 16:47
Joined: 2005-11-16
Forum posts: 63
Re: RFileLogger in Symbian 9.0
RFileLogger works fine on the emulator for Symbian 9.1. On target it works fine too. but the logfiles are only created in C:\Logs and its subfolders. This directory (on target) you cannot browse with a fileexplorer (dont know if FExplorer does it) or via Bluetooth. So I did the following workaround: When starting the application I do a backup of C:\Logs\MyApp.log to C:\Media files\others\MyApp.log. So I can access this logfile.

Another thing could be: write your own logging class (or service)  Wink

Regarding the problem, that the logfile is not written:

Code:
iLog.CreateLog(KLogFileSubDir, KLogFileServer, EFileLoggingModeOverwrite);

The logfile is only written if "KLogFileSubDir" exists! You can use BaflUtils to Ensure the path exists Wink

regards
Martin



Sat, 2007-01-27 17:57
Joined: 2005-02-11
Forum posts: 214
Re: RFileLogger in Symbian 9.0
You can use some freeware browsers to access logs. I recommend Yucca's browser. You can use it to send files to your computer via BT.

"I only know that I know nothing." (Socrates)

Sat, 2007-01-27 19:33
Joined: 2006-11-14
Forum posts: 11
Re: RFileLogger in Symbian 9.0
I am trying to compile my app, but I get the following error:

Undefined symbol: 'void TLogFormatter8Overflow::Overflow(class TDes8 &) (?Overflow@TLogFormatter8Overflow@@UAEXAAVTDes8@@@Z)' referenced from 'const TLogFormatter8Overflow::`vftable' (??_7TLogFormatter8Overflow@@6B@~)'

Undefined symbol: 'void TLogFormatter16Overflow::Overflow(class TDes16 &) (?Overflow@TLogFormatter16Overflow@@UAEXAAVTDes16@@@Z)' referenced from 'const TLogFormatter16Overflow::`vftable' (??_7TLogFormatter16Overflow@@6B@~)'

when I try and add looger.lib, I get this error:

No library file found matching 'liblogger.lib{.lib|.a}' or 'logger.lib'   

What have I missed?

Thu, 2007-09-13 10:10
Joined: 2007-09-13
Forum posts: 1
Re: RFileLogger in Symbian 9.0

to BlackStar:
it's flogger.lib

  • Login to reply to this topic.