frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: C++, Java and C# Light-Weight-Logger

https://github.com/PenguineDavid/light-weight-logger
2•PenguineDavid•1h ago
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:

[ERROR] [date, time-stamp, time-zone] <main log message> (file:thread-ID:line)

but you would write it like this:

// 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);

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:

logger.add_format("SUCCESS", style_minimal, Colour::GREEN); logger.add_format("INFO", master_style, Colour::CYAN); logger.add_format("WARN", master_style, Colour::YELLOW);

also the %S we put in there is actualy a colum padder so you logs will be inline:

[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)

Show HN: Don't ask if devs cheat with AI, test if they're good with it

https://tryevaluator.com
2•skyepstein•3m ago•0 comments

The Origin of Continents and Geology's Theory of Everything

https://worksinprogress.co/issue/on-the-origin-of-continents/
1•duffycommaryan•3m ago•0 comments

Scammers Sell Seeds for Exotic AI-Generated Flowers That Don't Exist

https://www.404media.co/scammers-sell-seeds-for-exotic-ai-generated-flowers-that-dont-exist/
1•Brajeshwar•3m ago•0 comments

Show HN: Let your AI agent manage your link in bio

https://keepp.link/keepp-skill/SKILL.md
1•vasanthps•3m ago•0 comments

The Beauty of Tautologies

https://scottsumner.substack.com/p/the-beauty-of-tautologies
1•surprisetalk•3m ago•0 comments

Show HN: FastReact – FastAPI and React Starter Kit for AI SaaS

https://fastreact.dev/
1•turtledevio•4m ago•0 comments

Claude Code Is Steganographically Marking Requests

https://thereallo.dev/blog/claude-code-prompt-steganography
1•kirushik•4m ago•0 comments

OSS Rust Web framework inspired by Nest.js

https://rustnidus.com/
1•Vicbona•5m ago•0 comments

Why don't tech workers see themselves as workers?

https://techwerkers.nl/en/posts/myth-of-middle-class/
2•lowbar•6m ago•1 comments

We encode time in space, and pay in complexity

https://notes.shixiangxi.com/en/docs/dual-world-theory/preface/
1•sxx0•7m ago•1 comments

The Cantillion Effect – Adam Smith Institute

https://www.adamsmith.org/blog/the-cantillion-effect
2•bilsbie•9m ago•0 comments

Everything Easy is Hard Again (2018)

https://frankchimero.com/blog/2018/everything-easy/
1•downbad_•9m ago•0 comments

Samsung, SK Hynix to Spend $520B on Chip Plants in South Korea

https://www.wsj.com/tech/samsung-sk-hynix-to-spend-520-billion-on-chip-plants-in-south-korea-7d50...
2•mushstory•10m ago•0 comments

Benchmarks and Obscurantism: A "red" line that should not be crossed

https://clickhouse.com/blog/databricks-reyden-benchmark-transparency-clickhouse
1•lightningspirit•10m ago•0 comments

LLM KOSH

https://github.com/rastogivaibhav/llm-kosh
1•rastogivaibhav•10m ago•0 comments

VSCode-pull-request-GitHub repeatedly asked to sign in again using GitHub

https://github.com/microsoft/vscode-pull-request-github/issues/8786
1•Klaster_1•13m ago•0 comments

No Systemd

https://nosystemd.org/
2•standeven•13m ago•0 comments

The labor share of income in the US is at its lowest post-war level

https://libertystreeteconomics.newyorkfed.org/2026/06/the-post-covid-decline-in-the-labor-share/
69•loughnane•13m ago•9 comments

Study Reveals How Leukemia Cells Enter and Damage Lungs

https://nyulangone.org/news/study-reveals-how-leukemia-cells-enter-and-damage-lungs
3•gmays•14m ago•0 comments

Supreme Court strikes down limits on party spending in federal elections

https://apnews.com/article/supreme-court-campaign-finance-party-spending-ohio-91e49ee112197ae1210...
3•khriss•14m ago•1 comments

Agents in Orbs

https://ampcode.com/news/agents-in-orbs
1•tosh•15m ago•0 comments

The Agent swarm that designs itself

https://peterbhabra.com/the-swarm-that-designs-itself/
1•kkm•15m ago•0 comments

Adverse selection eating away my Polymarket bot's arbitrage profits

https://kacho.io/why-my-polymarket-arbitrage-bot-lost-money
1•kachoio•16m ago•0 comments

I built a way to provision TikTok accounts without manual setup

https://developers.tokportal.com
1•naybu•16m ago•0 comments

Insurance giant Aflac discloses data breach after subsidiary hack

https://www.bleepingcomputer.com/news/security/insurance-giant-aflac-discloses-data-breach-after-...
1•Brajeshwar•16m ago•0 comments

Add a lure to your focus nook

https://practicalbetterments.com/add-a-lure-to-your-focus-nook/
1•surprisetalk•18m ago•0 comments

Show HN: NextMQ – managed BullMQ for serverless Next.js

https://nextmq.com/
1•garymiklos•18m ago•0 comments

Distribution waterfall calculator for private equity

https://effectivdigital.com/distribution-waterfall/
1•kking_effectiv•19m ago•0 comments

It's the Best Time Ever to Become a Millionaire by Working Alone

https://www.derekthompson.org/p/ai-isnt-coming-for-your-job-its-coming
1•Michelangelo11•21m ago•0 comments

Ask HN: Is Codex with GPT 5.5 Extra High being dumbed down?

2•setnone•21m ago•0 comments