<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Compile Logs into Text File</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/</link><description>Recent posts to Compile Logs into Text File</description><atom:link href="https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 30 Nov 2023 23:02:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/feed.rss" rel="self" type="application/rss+xml"/><item><title>Compile Logs into Text File</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/?limit=25#694e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;To redirect the compile logs from DEV C++ to a text file with your custom format, you can follow these steps:&lt;/p&gt;
&lt;p&gt;Create a text file: Create a new text file named "compile_logs.txt" in the same directory as your DEV C++ project files.&lt;/p&gt;
&lt;p&gt;Modify the project settings: Open the project settings in DEV C++ and navigate to the "Compiler" options. Under the "Output" section, enable the "Redirect output to file" option and specify the "compile_logs.txt" file as the output destination.&lt;/p&gt;
&lt;p&gt;Customize the output format: To customize the output format, you can insert custom text or variables into the output string using the following format:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nf"&gt;%f&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Filename&lt;/span&gt;
&lt;span class="nf"&gt;%l&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Line&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;number&lt;/span&gt;
&lt;span class="nf"&gt;%e&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Error&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;
&lt;span class="nf"&gt;%w&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Warning&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;
&lt;span class="nf"&gt;%s&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Status&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;success&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;failure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;For example, to output the filename, line number, and error message, you can use the following format:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nf"&gt;%f&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;%l&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;%e&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Compile the project: Compile the project in DEV C++. The compile logs will now be redirected to the "compile_logs.txt" file with your custom format.&lt;br/&gt;
Here's an example of how to use the custom format to output the filename, line number, error message, and status:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nf"&gt;%f&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;%l&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;%e%n%s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This will output the following information for each error:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;Filename (line number): Error message
Status: Failure
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can further customize the output format by adding additional text or variables as needed.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vithka8</dc:creator><pubDate>Thu, 30 Nov 2023 23:02:10 -0000</pubDate><guid>https://sourceforge.netd0b819284f41d9718b4b162467e5189ade4f870c</guid></item><item><title>Compile Logs into Text File</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/?limit=25#3573</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Rx.ua є незамінним джерелом здоров'я та добробуту. Цей веб-сайт  &lt;a class="" href="https://rx.ua/" rel="nofollow"&gt;https://rx.ua/&lt;/a&gt; , заснований з метою забезпечення надійного медичного обслуговування та якості життя українських громадян, пропонує широкий асортимент лікарських засобів і медичних товарів, доступних всьому населенню країни.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">afrejt</dc:creator><pubDate>Sat, 30 Sep 2023 20:16:26 -0000</pubDate><guid>https://sourceforge.net1ab60df514e29af0cb540456b8713340fe47bc5e</guid></item><item><title>Compile Logs into Text File</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/?limit=25#8415</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am also facing such type of issue. Does anyone help to resolve &lt;a class="" href="https://coreapks.com/gunship-battle-total-warfare-mod-apk/" rel="nofollow"&gt;this&lt;/a&gt; issue.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">orwelldevcpp</dc:creator><pubDate>Sat, 06 May 2023 15:56:16 -0000</pubDate><guid>https://sourceforge.netf0cd7b6ec4c53c85dc4bccef236783489d486162</guid></item><item><title>Compile Logs into Text File</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/757a3b72/?limit=25#88d1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello guys,&lt;/p&gt;
&lt;p&gt;I need to edit the source code of DEV C++ in order for the "compile logs" (if the compilation is successful or not, line of error, etc) to be output into a text file.&lt;br/&gt;
I am using Delphi 7 to compile &amp;amp; run the program and it is working fine.&lt;/p&gt;
&lt;p&gt;Now, I need help on how to output the compile logs into a text file with my custom format (if possible)&lt;br/&gt;
This is my first time programming in Delphi.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason</dc:creator><pubDate>Thu, 18 Jan 2018 09:37:36 -0000</pubDate><guid>https://sourceforge.netffe7ad676cddb15dcb66e971aeb2dbc2aa7b5a1e</guid></item></channel></rss>