<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Creating log files - Comments</title>
 <link>http://www.newlc.com/en/Creating-log-files.html</link>
 <description>Comments for &quot;Creating log files&quot;</description>
 <language>en</language>
<item>
 <title>Re: &gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-51410</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;My application involved &lt;span style=&quot;font-weight:bold&quot;&gt;multiple views&lt;/span&gt;, so I have to run the application using&lt;br /&gt;
return EikStart::RunApplication( NewApplication );&lt;/p&gt;

&lt;p&gt;If I use iLog as below, I can only get the log file for Write functionality only.&lt;/p&gt;

&lt;p&gt;GLDEF_C TInt E32Main()&lt;br /&gt;
    {&lt;br /&gt;
    __UHEAP_MARK;&lt;br /&gt;
   &lt;br /&gt;
    RFileLogger iLog;        //TODO: include all these in macros, and check return codes&lt;/p&gt;

&lt;p&gt;    iLog.Connect();&lt;br /&gt;
    iLog.CreateLog(KTag1,KTag2,EFileLoggingModeOverwrite);&lt;br /&gt;
    &lt;span style=&quot;font-weight:bold&quot;&gt;iLog.Write(KTestString);&lt;/span&gt;&lt;br /&gt;
    iLog.CloseLog();&lt;br /&gt;
    iLog.Close();&lt;/p&gt;

&lt;p&gt;    __UHEAP_MARKEND;&lt;br /&gt;
    &lt;br /&gt;
    return EikStart::RunApplication( NewApplication );&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
How can I take the &lt;span style=&quot;font-weight:bold&quot;&gt;log file for an entire application&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;Do I need to write those 5 lines in every function?&lt;br /&gt;
It will be complex...right ?&lt;br /&gt;
Whats the correct procedure ?&lt;br /&gt;
Can anybody help me out....&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 03 Sep 2009 15:09:44 +0200</pubDate>
 <dc:creator>suni.saski</dc:creator>
 <guid isPermaLink="false">comment 51410 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-617</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;I found the way: RFileLogger works exactly as before. All you need is being able to explore folder C:\logs.
A first freeware file explorer is available to S60 3rd: http://simonjudge.com/symbianseries603rdfreeware.html
through it, I copy my log file to E: or C:\Data and I can see it on my PC&#039;s phone browser.&lt;/div&gt;</description>
 <pubDate>Tue, 24 Oct 2006 18:20:25 +0200</pubDate>
 <dc:creator>Diego Zanin</dc:creator>
 <guid isPermaLink="false">comment 617 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-616</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;I can see that class RFileLogger is still there in S60 3rd. The problem is the implicit path where static methods used to write (c:\logs) which is not any more available to applications, or at least it is not browsable via any file explorer.
I tried using the class as I did in S60 2nd and no problems arise except that no file is available.
Is the implicit path still the same or is it changed?
Any workaround to use RFileLogger&#039;s static methods in S60 3rd?
Thanks in advance,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Diego Zanin&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 24 Oct 2006 11:39:37 +0200</pubDate>
 <dc:creator>Diego Zanin</dc:creator>
 <guid isPermaLink="false">comment 616 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-615</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;hi,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;i&#039;ve created logfile successfully on the system in the path
C:\Symbian\7.0s\Series60_v20_CW\Epoc32\winscw\c\Logs\HelloWorld for helloworl application.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;but not on mobile.manually i created both logs n helloworld dir der.but still im getting empty text file.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;can anybody suggest me?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;thanks in advance
rees&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 22 Sep 2006 10:28:29 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 615 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-622</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;what is the folder to create the \Logs\MyLogDirectory\ folder on the phone HW?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;THANKS@!&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 14 Jun 2006 00:18:32 +0200</pubDate>
 <dc:creator>ROBBIN</dc:creator>
 <guid isPermaLink="false">comment 622 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-614</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Put the declaration of  &quot;RFileLogger iLog;&quot; in the .h file will be better.&lt;/div&gt;</description>
 <pubDate>Tue, 06 Jun 2006 08:47:25 +0200</pubDate>
 <dc:creator>ChinaLC</dc:creator>
 <guid isPermaLink="false">comment 614 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-613</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Try to delete the LogFile after CloseLog.... impossible:) I can&#039;t create a kind of rolling logfile.&lt;/div&gt;</description>
 <pubDate>Tue, 14 Jun 2005 13:37:48 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 613 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-619</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I tryed to use RFileLogger.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;The application compile well for WINS, but when I try to compile for thum I got the following error:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;-f &quot;\Symbian\8.0a\S60_2nd_FP2\EPOC32\BUILD\MISDOCUMENTOS\DESARROLLOS\SYMBIAN\AUDIODAEMON\GROUP\THUMB.make&quot; TARGET CFG=UREL VERBOSE=-s
make[1]: *** No rule to make target `\SYMBIAN\8.0A\S60_2ND_FP2\EPOC32\INCLUDE\FLOGGER.H \SYMBIAN\8.0A\S60_2ND_FP2\EPOC32\INCLUDE\FLOGGER.INL&#039;, needed by `..\..\..\..\..\SYMBIAN\8.0A\S60_2ND_FP2\EPOC32\BUILD\MISDOCUMENTOS\DESARROLLOS\SYMBIAN\AUDIODAEMON\GROUP\AUDIODAEMON\THUMB\UREL\AUDIODAEMON.o&#039;.  Stop.
make: *** [TARGETAUDIODAEMON] Error 2&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Some body know what&#039;s happening?. RFileLogger must be used only in wins.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Thanks.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Diego (dacosta51@yahoo.com)&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 01 Jun 2005 16:14:22 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 619 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-627</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi TQ&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I&#039;m not sure if you still have the problem of creating the folder c:\logs\myfolder\ automatically. You&#039;re right the directory HAS to be there. You can do this either with an RFs::MkDirAll or RFs::MkDir in your app (see SDK help: &quot;API Reference Â» File Server Client Side Â» RFs&quot;), or if you don&#039;t have to create the directory from within your app you can use a file manager, such as the built-in ones that come with your phone.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;You can use RFs::SetAtt (same SDK help page as before) to set attributes.&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 02 Feb 2005 08:10:13 +0100</pubDate>
 <dc:creator>invenio</dc:creator>
 <guid isPermaLink="false">comment 627 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-626</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;one of the lines in your code:&lt;/p&gt;

&lt;blockquote class=&quot;spip&quot;&gt;
&lt;p class=&quot;spip&quot;&gt;iLog.connect();&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class=&quot;spip&quot;&gt;Could there have been an error because u&#039;re using small &quot;c&quot; instead of capital &quot;C&quot;?
Try&lt;/p&gt;
&lt;blockquote class=&quot;spip&quot;&gt;
&lt;p class=&quot;spip&quot;&gt;iLog.Connect();&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class=&quot;spip&quot;&gt;instead&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;btw, i&#039;m trying to create the folder&lt;/p&gt;

&lt;blockquote class=&quot;spip&quot;&gt;
&lt;p class=&quot;spip&quot;&gt;c:\logs\myfolder\&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class=&quot;spip&quot;&gt;automatically but with no success. Can anyone help? This is important because without the correct path, the logger wouldn&#039;t log.
also, can someone tell me how to set the file to &quot;Read Only&quot; and back to writable mode?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;TQ&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 21 Dec 2004 00:07:56 +0100</pubDate>
 <dc:creator>NewB()</dc:creator>
 <guid isPermaLink="false">comment 626 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-612</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;hi 
i have done all the steps as mentioned, but i am not able to use the write function outside constructl(). it gives a compilation error (&quot;Write&#039; : 4 overloads have no legal conversion for &#039;this&#039; pointer&quot;).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;here is what i have done&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;in .h
RFileLogger iLog;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;in .cpp
//in constructl ()&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;iLog.connect();
iLog.CreateLog(KLogDir,KLogFile,EFileLoggingModeOverwrite);
iLog.Write(_L(&quot;inside constructl&quot;));&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;//in some func foobar() of same class&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;iLog.Write(_L(&quot;inside foobar&quot;));
//this line gives the error.&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 03 Dec 2004 10:37:18 +0100</pubDate>
 <dc:creator>bullzi</dc:creator>
 <guid isPermaLink="false">comment 612 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-620</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;What about creating a log file on the MMC of the device ? Is that possible ?&lt;/div&gt;</description>
 <pubDate>Thu, 02 Dec 2004 10:16:04 +0100</pubDate>
 <dc:creator>Fardin</dc:creator>
 <guid isPermaLink="false">comment 620 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-611</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;I tried using iLog.HexDump() and I can&#039;t get it to compile! Can you explain the parameters in: iLog.HexDump(aHeader,aHeader,myPtr,4) ? What is the type declaration for aHeader and how do I initialize it, what is the type declaration for myPtr, what does the 4 do? How does this function work?&lt;/div&gt;</description>
 <pubDate>Wed, 22 Sep 2004 16:43:28 +0200</pubDate>
 <dc:creator>erica</dc:creator>
 <guid isPermaLink="false">comment 611 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-625</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;The error code needs to be checked for the Connect and CreateLog since CloseLog will panic if the connection does not exist. But, the general log functions will silently fail if the connection failed so these do not need Â“ifÂ” statements before them.&lt;/div&gt;</description>
 <pubDate>Fri, 03 Sep 2004 11:34:34 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 625 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html#comment-624</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;I tried out your code and it works. The code I compiled was:
&lt;tt&gt;&lt;div align=&#039;left&#039; class=&#039;spip_code&#039; dir=&#039;ltr&#039;&gt;#include &amp;lt;flogger.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
_LIT(KTag1,&amp;quot;Mobeel&amp;quot;);&lt;br /&gt;
_LIT(KTag2,&amp;quot;GPRS.txt&amp;quot;);&lt;br /&gt;
_LIT(KTestString,&amp;quot;1111111111111111111111111111111111111111&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GLDEF_C TInt E32Main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __UHEAP_MARK;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RFileLogger iLog;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //TODO: include all these in macros, and check return codes&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iLog.Connect();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iLog.CreateLog(KTag1,KTag2,EFileLoggingModeOverwrite);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iLog.Write(KTestString); &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iLog.CloseLog();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iLog.Close();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __UHEAP_MARKEND;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return KErrNone;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;and I created this directory:&lt;br&gt;
S:\epoc32\wins\c\logs\Mobeel&lt;br&gt;
to see the GPRS.txt file&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Steve&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 03 Sep 2004 11:31:28 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 624 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating log files</title>
 <link>http://www.newlc.com/en/Creating-log-files.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Need to debug some code on a mobile or track the execution flow ? The RFileLogger class is really useful to create log files...&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/Creating-log-files.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/Creating-log-files.html#comments</comments>
 <category domain="http://www.newlc.com/en/taxonomy/term/1">Basics</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/125">Error Management</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/127">File System</category>
 <pubDate>Fri, 11 Jul 2003 16:03:56 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">120 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
