store arbitrary json blobs in postgres over http
Go to file
Stephen McQuay 315f7cc8b3 updated license 2015-06-23 08:48:38 -07:00
.hgignore ignore vim .swp files 2013-12-21 00:44:15 -08:00
api.go better way to deal with empty bodies 2013-12-28 23:01:10 -08:00
config.go Moved verbose to flag. 2013-12-20 23:35:24 -08:00
db.go added sql storage 2013-12-21 00:26:54 -08:00
init.sql added sql storage 2013-12-21 00:26:54 -08:00
license updated license 2015-06-23 08:48:38 -07:00
log.go updated for changes to sqlx 2014-12-01 21:54:54 -08:00
main.go added sql storage 2013-12-21 00:26:54 -08:00
readme.md trying to emphasize the arbitrariness of the payload 2013-12-21 00:48:12 -08:00

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