<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[C++ Logging]]></title><description><![CDATA[<p>Kann es sein das man in C++ Projekten wenig auf Logging setzt? In Java Projekten ist Logging meistens unumgänglich, wenn es sich um größere Projekte handelt. Jemand sagte mir das für das Logging das Betriebssystem zuständig ist und man deswegen in C++ meistens darauf verzichtet. Stimmt das? Wenn ja, wo kann ich die Logs einsehen? Was für Argumente sprechen noch dagegen bzw. dafür? Und warum sind die Java Leute so &quot;scharf&quot; auf Logging?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/321701/c-logging</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 04:35:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/321701.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Nov 2013 20:01:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Logging on Thu, 21 Nov 2013 20:01:24 GMT]]></title><description><![CDATA[<p>Kann es sein das man in C++ Projekten wenig auf Logging setzt? In Java Projekten ist Logging meistens unumgänglich, wenn es sich um größere Projekte handelt. Jemand sagte mir das für das Logging das Betriebssystem zuständig ist und man deswegen in C++ meistens darauf verzichtet. Stimmt das? Wenn ja, wo kann ich die Logs einsehen? Was für Argumente sprechen noch dagegen bzw. dafür? Und warum sind die Java Leute so &quot;scharf&quot; auf Logging?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366875</guid><dc:creator><![CDATA[logger12345]]></dc:creator><pubDate>Thu, 21 Nov 2013 20:01:24 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Thu, 21 Nov 2013 20:09:28 GMT]]></title><description><![CDATA[<p>Ich denke, ob Logging gebraucht wird oder nicht hängt von der Projektart und vorallem von der Grösse des Projekts ab. Typischerweise wird zum Logging dann ein Framework eingesetzt. Bei diesen Frameworks kann man typischerweise ein oder mehrere Appender/Targets angeben, vom Logfile über Syslog, bis hin zum Windows Eventlog oder auch über das Netzwerk.</p>
<p>Hier ein paar Frameworks zum Thema:<br />
<a href="http://www.boost.org/doc/libs/1_55_0/libs/log/doc/html/index.html" rel="nofollow">http://www.boost.org/doc/libs/1_55_0/libs/log/doc/html/index.html</a><br />
<a href="http://sourceforge.net/p/log4cplus/wiki/Home/" rel="nofollow">http://sourceforge.net/p/log4cplus/wiki/Home/</a><br />
<a href="http://johnwbyrd.github.io/logog/" rel="nofollow">http://johnwbyrd.github.io/logog/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366877</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 21 Nov 2013 20:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Thu, 21 Nov 2013 20:16:42 GMT]]></title><description><![CDATA[<p>logger12345 schrieb:</p>
<blockquote>
<p>Und warum sind die Java Leute so &quot;scharf&quot; auf Logging?</p>
</blockquote>
<p>Weil Javaleute grösstenteils Anfänger sind und Logging zum Debuggen brauchen.</p>
<p>Dann sind einige C++-Programme mehr auf Performance ausgelegt, da stört das Loggen bloss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366879</guid><dc:creator><![CDATA[realität]]></dc:creator><pubDate>Thu, 21 Nov 2013 20:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Thu, 21 Nov 2013 20:41:29 GMT]]></title><description><![CDATA[<p>Kommt wirklich aufs Projekt an. Wenn das eine normale Software ist, die bei Endkunden eingesetzt wird, kommst du ohne Logging schlecht aus. Das Betriebssystem hilft dir da auch nicht weiter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366887</guid><dc:creator><![CDATA[Mechanics]]></dc:creator><pubDate>Thu, 21 Nov 2013 20:41:29 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 00:26:58 GMT]]></title><description><![CDATA[<p>Beim Endkunden ist nur als Meldung zu sehen:</p>
<pre><code>Es  ist ein kritischer Fehler aufgetreten. 
Bitte rufen Sie Ihren Systemadministrator!
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /><br />
nebst &quot; <code>catch(...) in der main()</code> &quot;.<br />
Ich genieße es manchmal, als Programmierer die jungen Admins zu ärgern, die mir auf dem Entwicklungsrechner Ports sperren wollen und so. Neee, Endkunde kriegt ordentliche Arbeit, zappzarrapp, FALLS ein Fehler kommt, machen wir den schnell weg.</p>
<p>Je sicherer man in einem Gebiet wird, desto weniger loggt man da. Ich würde zum Beispiel gar keine Speicherfreigabesachen loggen, da sitzt mir C++-RAII so fest, das zu loggen wäre nur störender Müll. Alle open/close-Paare!!! Und das sind schon fast alle Programmierfehlerchen, die aus Versehen passieren. Vielleicht sogar alle, wenn der Progger ein wenig erfahren ist.</p>
<p>Vielleicht.</p>
<p>Was alles will man hingegen loggen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366907</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 22 Nov 2013 00:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 13:56:55 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Was alles will man hingegen loggen?</p>
</blockquote>
<p>Zustände die normalerweise zum Absturz führen. Nichts ist nerviger als wenn Programme tatsächlich abstürzen. Besser: Programm schreibt einen Log-Eintrag, zeigt eventuell eine Fehlermeldung und bricht die jeweilige Aktion ab.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366908</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 22 Nov 2013 13:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 05:23:07 GMT]]></title><description><![CDATA[<p>@logger12345:<br />
Woher hast du die Info? Ich bin selbst noch neu in C++, aber alle Klassen die ich neu ausprobiere sind voll mit couts und bei GUI-Sachen dann halt qDebug() &lt;&lt; &quot;bla&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366913</guid><dc:creator><![CDATA[CppNeuland]]></dc:creator><pubDate>Fri, 22 Nov 2013 05:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 08:13:52 GMT]]></title><description><![CDATA[<p>CppNeuland schrieb:</p>
<blockquote>
<p>@logger12345:<br />
Woher hast du die Info? Ich bin selbst noch neu in C++, aber alle Klassen die ich neu ausprobiere sind voll mit couts und bei GUI-Sachen dann halt qDebug() &lt;&lt; &quot;bla&quot;</p>
</blockquote>
<p>er redet von Programmen die verkauft werden. Du von Beispielen aus einem Buch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366936</guid><dc:creator><![CDATA[ichhoffeesistrichtig]]></dc:creator><pubDate>Fri, 22 Nov 2013 08:13:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 08:30:31 GMT]]></title><description><![CDATA[<p>Warum sollten denn bei verkaufter Software Debug-Features wie Logging noch aktiv sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366943</guid><dc:creator><![CDATA[CppNeuland]]></dc:creator><pubDate>Fri, 22 Nov 2013 08:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 08:41:59 GMT]]></title><description><![CDATA[<p>CppNeuland schrieb:</p>
<blockquote>
<p>Warum sollten denn bei verkaufter Software Debug-Features wie Logging noch aktiv sein?</p>
</blockquote>
<p>Weil vielleicht nicht alle Fehler raus sind.</p>
<p>Software ist nicht nur Software aus dem Supermarkt. Ein Großteil der Softwareentwicklungswelt sind Individuallösungen (oder Lösungen mit sehr wenigen Abnehmern) und sehr enger Bindung von Kunden und Entwicklern. Solche Software wird 24/7 gepflegt und weiterentwickelt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366949</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 22 Nov 2013 08:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 08:51:31 GMT]]></title><description><![CDATA[<p>Ich habe 15 Jahre lang Software für Kunden geschrieben und nie bekamen die das Produkt mit aktiviertem Logging ausgeliefert. In meiner jetzigen Firma wird man gesteinigt wenn man vorm Ausrollen der Appliance noch ein Logging aktiv hat. Also achte ich schön vor dem Commit darauf, dass nix mehr geloggt wird.</p>
<p>So hat halt jeder seine Erfahrungen gemacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366951</guid><dc:creator><![CDATA[CppNeuland]]></dc:creator><pubDate>Fri, 22 Nov 2013 08:51:31 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 09:26:23 GMT]]></title><description><![CDATA[<p>Du warst(bist?) Webentwickler mit kleinen Projekten. Da sieht das anders aus.</p>
<p>Und wir sprechen hier nicht von Debugausgaben wie irgendwelche echo's oder cout's die en paar Ergebniswerte ausgeben, sondern von der Querschnittsfunktionalität Logging. Dort wird systematisch was rausgeschrieben und gespeichert, dass Fehler nachvollziehbar werden auch wenn die Programmausführung schon lange beendet ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366957</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Fri, 22 Nov 2013 09:26:23 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Logging on Fri, 22 Nov 2013 11:10:41 GMT]]></title><description><![CDATA[<p>Ja stimmt es sind recht kleine Projekte, die werden zwar für mehrere tausend Euro verkauft, aber von der Komplexität sind sie eher klein und alle in PHP geschrieben mit ein paar Bashscripten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2366982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2366982</guid><dc:creator><![CDATA[_CppNeuland]]></dc:creator><pubDate>Fri, 22 Nov 2013 11:10:41 GMT</pubDate></item></channel></rss>