store arbitrary json blobs in postgres over http

Stephen McQuay 315f7cc8b3 updated license 2 years ago
.hgignore ignore vim .swp files 3 years ago
api.go better way to deal with empty bodies 3 years ago
config.go Moved verbose to flag. 3 years ago
db.go added sql storage 3 years ago
init.sql added sql storage 3 years ago
license updated license 2 years ago
log.go updated for changes to sqlx 2 years ago
main.go added sql storage 3 years ago
readme.md trying to emphasize the arbitrariness of the payload 3 years ago

readme.md

itslog

itslog is a simple logging system. You can send it a payload that looks like this:

{
    "level" : 1,
    "namespace": "ren.stimpy",
    "payload": {
        "type": "arbitrary object",
        "wait, any type?": [
            "I am",
            "very serious"
        ],
        "pi": 3.142
    }
}

and itslog will gracefully shove it into a postgres database for future retrieval. It is literally the simplest program of this variety one could possibly imagine.

Simply provide it with a level, a namespace, and a payload, and itslog will do the rest. Please note that payload can be any valid json object.

future work

implement a (very simple) query api, supporting filtering based on:

  • log level
  • namespace
  • date range