HACKER Q&A
📣 isthispermanent

Looking for an extremely simple logging tool


I just want to be able to insert a line of code...

Example: await thing.sendLog('Here', payload)

...and have that log sent to a Slack workspace.

Just super simple logging to speed up dev time, particularly for debugging. It's just a pain to refresh and comb through CloudWatch or other heavy logs.


  👤 hitpointdrew Accepted Answer ✓
You really aren’t providing a lot of context.

> I just want to be able to insert a line of code...

In what, exactly? Java? Python? Rust?

Most languages have very simple logging libraries, that will log to a local file. Most also have slack sdk’s. It should be easy enough to marry the two up.


👤 f1shy
As asked, just one line:

LIBRARY Standard C Library (libc, -lc)

SYNOPSIS #include

     void
     syslog(int priority, const char *message, ...);