<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: PenguineDavid</title><link>https://news.ycombinator.com/user?id=PenguineDavid</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 21 Oct 2026 07:43:58 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=PenguineDavid" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: C++, Java and C# light-weight-logger]]></title><description><![CDATA[
<p>This is a library I've been working on with versions for C++, java & C# where you make custom formats and Log based on them, for example you could make an ERROR Like this:<p><pre><code>  [ERROR] [date, time-stamp, time-zone] <main log message> (file:thread-ID:line)
</code></pre>
but you would write it like this:<p><pre><code>  // define the master format

  master_style = "%C[%N]%c%S%G[%D %T %Z]%c %M %G(%F:%t:%L)";

  // tell the logger what colour to use for a given name

  logger.add_format("ERROR", master_style, Colour::RED);
</code></pre>
so now the [ERROR] part will be red,
the time area will be grey,
and the location grey,
but you could really make any style you wanted.
And once you have a master format you could also add different types of logs:<p><pre><code>  logger.add_format("SUCCESS", style_minimal, Colour::GREEN);
  logger.add_format("INFO", master_style, Colour::CYAN);
  logger.add_format("WARN", master_style, Colour::YELLOW);
</code></pre>
also the %S we put in there is actualy a colum padder so you logs will be inline:<p><pre><code>  [INFO]   [16/06/2026 10:58:00 AUS Eastern Standard Time] Initializing core subsystem components. (src/main.cpp:1:39)
  [SUCCESS][16/06/2026 10:58:00 AUS Eastern Standard Time] Database connection established smoothly. (src/main.cpp:1:40)
  [WARN]   [16/06/2026 10:58:00 AUS Eastern Standard Time] High memory usage detected on node cluster. (src/main.cpp:1:41)
  [ERROR]  [16/06/2026 10:58:00 AUS Eastern Standard Time] Failed to write to write-ahead log! (src/main.cpp:1:42)</code></pre></p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48732953">https://news.ycombinator.com/item?id=48732953</a></p>
<p>Points: 12</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 30 Jun 2026 14:07:42 +0000</pubDate><link>https://github.com/PenguineDavid/light-weight-logger</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48732953</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48732953</guid></item><item><title><![CDATA[New comment by PenguineDavid in "Show HN: C++, Java and C# Light-Weight-Logger"]]></title><description><![CDATA[
<p>darn it I was gonna make a show HN for that link now I can't cuz I can't use the same link twice...</p>
]]></description><pubDate>Tue, 30 Jun 2026 11:03:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=48730924</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48730924</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48730924</guid></item><item><title><![CDATA[New comment by PenguineDavid in "Show HN: C++, Java and C# Light-Weight-Logger"]]></title><description><![CDATA[
<p>I am an idiot sorry it's <a href="https://github.com/PenguineDavid/light-weight-logger" rel="nofollow">https://github.com/PenguineDavid/light-weight-logger</a> new to HN can I edit my post?</p>
]]></description><pubDate>Tue, 30 Jun 2026 10:56:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=48730866</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48730866</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48730866</guid></item><item><title><![CDATA[New comment by PenguineDavid in "Ask HN: What are you working on? (June 2026)"]]></title><description><![CDATA[
<p>Funny I was going to make a programming language called Glyph as well but than i discovered GlyphLang so I decided to call it Kith instead.</p>
]]></description><pubDate>Mon, 15 Jun 2026 12:35:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=48540348</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48540348</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48540348</guid></item><item><title><![CDATA[New comment by PenguineDavid in "Chrome had the highest idle CPU and RAM usage in a 5-browser benchmark"]]></title><description><![CDATA[
<p>I like Firefox edge spams your face with thousands of adds tho the web developer tools on edge are nice.</p>
]]></description><pubDate>Mon, 15 Jun 2026 11:18:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=48539666</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48539666</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48539666</guid></item><item><title><![CDATA[New comment by PenguineDavid in "From Australia to Europe, countries move to curb children's social media access"]]></title><description><![CDATA[
<p>I'm from Australia they took entirely the wrong approach not only do I think there are better options than just blanket banning social media including some educational content that maybe on YouTube to all under 16yrs, but even if it was the way they have done it you just can't make an account but you can still watch videos just no commenting & no subscribing.</p>
]]></description><pubDate>Mon, 15 Jun 2026 10:58:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=48539474</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48539474</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48539474</guid></item><item><title><![CDATA[New comment by PenguineDavid in "Firewood Splitting Simulator"]]></title><description><![CDATA[
<p>This is really cool!
I honestly spent like 30mins just cutting firewood.</p>
]]></description><pubDate>Mon, 15 Jun 2026 10:35:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=48539308</link><dc:creator>PenguineDavid</dc:creator><comments>https://news.ycombinator.com/item?id=48539308</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48539308</guid></item></channel></rss>